adieyal / sd-dynamic-prompts

A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation
MIT License
2.02k stars 261 forks source link

Dynamic prompts not working in A1111 with SDXL #685

Closed mprz1024 closed 9 months ago

mprz1024 commented 10 months ago

Is there a reason why, when loading a SDXL checkpoint, Dynamic Prompts which was otherwise working fine in Automatic1111 would stop expanding anything and just send the wildcards to the model?

akx commented 9 months ago

No – that doesn't happen for me, it works just fine with SDXL models too.

mprz1024 commented 9 months ago

You are right; I found what was the problem: I had renamed a LoRA something like SomethingSomething0.3~0.6.safetensors to remember which weight to use. When I added it, it got added like <lora:SomethingSomething0.3~0.6.safetensors> and the unclosed double underscore broke dynamyc prompts, even if it was within <...>. I just happened to use this LoRA at the same time as I had switched to SDXL. I renamed my LoRAs using -- and it solved the problem.