Skip to content

BUG: Dynamic Prompt generated PNG info cannot be read back via txt2img button #177

@tusharbhutt

Description

@tusharbhutt

Describe the bug
When you read the PNG info from a file and then send it to the TXT2IMG tab via the txt2img button, all the parameters other than the positive prompt goes to the correct spot), go into the negative prompt box. The same occurs when using the Image browser and I suspect anything with the txt2img button. Seeds, steps, CFG, etc are all put into the negative prompt too when they should go into their respective fields.

NOTE: this issue does not occur when using PNG info from vanilla AUTO1111 images

image

To Reproduce
Steps to reproduce the behaviour, include the prompt you used if applicable:

  1. Find an image with PNG info
  2. Press txt2img to send to the txt2img tab
  3. Note where the parameters end up

Also mention which checkboxes have been set.

Ignore whitespaces, insert template into PNG (may be this one....)

Are you using a local install or a colab?

Local

If a colab, which one?

Expected behaviour
A clear and concise description of what you expected to happen.

The parameters after the negative prompt ends should go into the proper fields (CFG, steps, etc)

Additional context

Here is the generated PNG Info to test:


parameters

epic (Children’s drawing) of (An underground Oasis:1.2), professional (Naive genre:0.5), (Nuclear style:0.5), mythical mood, best, astonishing, impressive, outstanding, stunning, gorgeous, much detail, much wow, global dynamic lighting, cinematic, perfect, detailed textures, masterpiece
Negative prompt: logo, text,watermark, istock, shutterstock, getty, alamy, dreamstime, yayimages,adobe stock,signature,icon,Neg_FaceLift768,NegLowRes-1000 ,neg_Colorizer768-warm,NegMutation-2000,no_unrealistic768
Steps: 30, Sampler: DPM++ SDE Karras, CFG scale: 7, Seed: 2050696836, Size: 768x768, Model hash: 4bdfc29c, Model: StabilityAI_Stable21-768-ema-pruned, Denoising strength: 0.62, Eta: 0.89, Hires resize: 1536x1024, Hires steps: 30, Hires upscaler: Latent (bicubic antialiased)
Template:epic (__mediumnew__) of (__hotpot__:1.2), professional (__genrenew__ genre:0.5), (__aestheticsnew__ style:0.5), __moodsnew__ mood, best, astonishing, impressive, outstanding, stunning, gorgeous, much detail, much wow, global dynamic lighting, cinematic, perfect, detailed textures, masterpiece
Negative Template:logo, text,watermark, istock, shutterstock, getty, alamy, dreamstime, yayimages,adobe stock,signature,icon,Neg_FaceLift768,NegLowRes-1000 ,neg_Colorizer768-warm,NegMutation-2000,no_unrealistic768, aesthetic_score: 6.9

aesthetic_score

6.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions