Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix output gallery parameter info when sourcing from .csv and .json formats including VAE & LoRA #1591

Merged
merged 2 commits into from
Jun 24, 2023

Conversation

one-lithe-rune
Copy link
Contributor

@one-lithe-rune one-lithe-rune commented Jun 23, 2023

Addresses #1583

Motivation

44a8f2f added VAE & LoRA information to the .png metadata, .json files and the .csv file. The output gallery got the .png metadata updates for 'free' because it can use the same parser as the txt2img image drag and drop UI.

However, the update didn't cover the metadata parsing used by the output gallery to get the parameter information when .png metadata isn't present and it falls back to the .json and csv files.

Changes

  • Update saving of img_details.csv to include headers for the first row when creating new .csv files.
  • Update parsing of parameter info by the output gallery from img_details.csv to use headers when they are present. This and the above should make future updates less painful.
  • Add VAE and LoRA fields to parameter info in output_gallery when sourced from .csv or .json (was already picked up from .png sources)

Possible Problems/Concerns

  • I'm assuming that nothing cares about the fact that imgs_details.csv will now include headers. That may be a bad assumption.

one-lithe-rune and others added 2 commits June 24, 2023 00:16
* Update saving of img_details.csv to include headers for the first row
when creating new .csv files.
* Update parsing of parameter info by the output gallery from
img_details.csv to use headers when they are present
* Add VAE and LoRA fields to parameter info in output_gallery when
sourced from .csv or .json (was already picked up from .png sources)
@powderluv powderluv merged commit e3ab844 into nod-ai:main Jun 24, 2023
@one-lithe-rune one-lithe-rune deleted the og_fix_csv_parse branch July 5, 2023 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants