Open tusharbhutt opened 1 year ago
I added some thoughts and suggestions about this feature in the original discussion thread: https://github.com/adieyal/sd-dynamic-prompts/discussions/149#discussioncomment-4673595
Oh OK! Good to know, I'll close this one.
@tusharbhutt , @masslevel
I've pushed a fix to a new branch. Could you please test before I merge into the main branch?
In extensions/sd-dynamic-prompt
run these commands:
git pull -a
git checkout bug/copypaste-parameters
You can get back to main with:
git checkout main
@tusharbhutt , @masslevel
I've pushed a fix to a new branch. Could you please test before I merge into the main branch?
Giving it a try now... did not work:
👍 , still happens to me too. Something about this extension's additions to the metadata makes A1111 unable to parse any of it back into the UI...
I haven't had a chance to look into why the patch didn't fix it since it was working when I pushed. The way metadata is written to the png is using the on_before_image_saved callback
Auto's parsing is a little fiddly. The last line is assumed to the settings (cfg, steps, etc). Then it reads the remaining metadata line by line until it gets to negative prompt. And splits it into positive and negative prompts. Since DP appends the template to that metadata, the parameters assumption doesn't hold anymore.
In order to fix it, remove_template_from_infotext is called by the on_infotext_pasted callback.
Before the metadata is parsed, remove_template_from_infotext removes the template. I'll need to look into why this hasn't been working.
Out of curiosity, which script reads/writes the metadata?
You mean in auto1111? modules/generation_parameters_copypaste.py
Yes, thanks. I'm trying to get the PNG data imported into Lightroom via EXIFTool and with the arbitrary number of parameters passed plus colons being used in the prompts and as delimiters, it's a tough slog :)
Just had this issue today, turning on the "template in PNG info" setting breaks PNG info's send to txt2img function.
Are there any news on this issue? I just found out, that this is why some data is not being sent from the image browser extension to a1111.
https://github.com/AlUlkesh/stable-diffusion-webui-images-browser/issues/153#issuecomment-1742108654
This PR should fix that.
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
To Reproduce Steps to reproduce the behaviour, include the prompt you used if applicable:
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: