Prompt output lost when using dynamic prompt variables, adetailer and batch count > 1 #229
Replies: 2 comments
-
This happens due to you "restoring" p.all_prompts in process_batch() in rp.py. In this case you make a copy all_prompts from a p which is itself a shallow, later discarded copy of p that adetailer makes. Adetailer later restores p.all_prompts themselves, but at this point, you have made your copy (self.all_prompts) from a wrong all_prompts already. Then you "restore" it to the actual used p in process_batch() when a new batch starts, and from then on it's messed up. I'm not exactly sure why it is done like this, can't you maybe restore p.all_prompts in postprocess()? |
Beta Was this translation helpful? Give feedback.
-
This is a necessary action to fill in the correct information to png info. |
Beta Was this translation helpful? Give feedback.
-
This weirdly only seems to happen for me when I have both after detailer / adetailer and regional prompter active.
I'm not sure if it's an issue with regional prompter, dynamic prompts or after detailer.
Example prompt:
It will generate everything fine and seems to use the right dynamic prompts, but the meta data written to the PNG and shown in Automatic1111 repeat the prompt from the first image for every image after the first batch, instead of showing the new dynamic prompt for every image.
It works when I turn either regional prompter or adetailer off.
Beta Was this translation helpful? Give feedback.
All reactions