fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

Dynamic prompts stopped work

Open mdlieber99 opened this issue 2 years ago • 8 comments

The extension Dynamic Prompts has stopped working again. I'm using Google Colab. I've tried all the normal tricks. I deleted the folders from my Google Drive and turned off the extension in A1111. Then I started everything over. Still get the same error. Everything in brackets just gets treated like normal text (so A1111 thinks I want all the options). I do have this line of code in the "requirements" cell:

!pip install 'dynamicprompts[attentiongrabber,magicprompt]==0.29.0'

this has helped in the past so I don't think that is a problem. I had previously gotten an error saying I needed to run that and when I added it, it fixed things. Otherwise my cells are all as you made them. Below is the error I get when I try to use a prompt that has dynamic prompts in them. Any ideas? As usual, I am happy to support you if you can help me fix this. Thanks.

Error running process: /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-dynamic-prompts/scripts/dynamic_prompting.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 619, in process script.process(p, *script_args) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-dynamic-prompts/sd_dynamic_prompts/dynamic_prompting.py", line 485, in process all_prompts, all_negative_prompts = generate_prompts( File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-dynamic-prompts/sd_dynamic_prompts/helpers.py", line 97, in generate_prompts all_negative_prompts = negative_prompt_generator.generate( File "/usr/local/lib/python3.10/dist-packages/dynamicprompts/generators/randomprompt.py", line 67, in generate gen = self._context.sample_prompts(template, num_images) File "/usr/local/lib/python3.10/dist-packages/dynamicprompts/sampling_context.py", line 119, in sample_prompts command = parse(prompt, parser_config=self.parser_config) File "/usr/local/lib/python3.10/dist-packages/dynamicprompts/parser/parse.py", line 454, in parse tokens = get_cached_parser(parser_config).parse_string( File "/usr/local/lib/python3.10/dist-packages/pyparsing/core.py", line 1197, in parse_string raise exc.with_traceback(None) pyparsing.exceptions.ParseException: Expected end of text, found '{' (at char 31), (line:1, col:32)

mdlieber99 avatar Oct 30 '23 03:10 mdlieber99

I'll check it out

TheLastBen avatar Oct 30 '23 13:10 TheLastBen

Thanks!

mdlieber99 avatar Oct 30 '23 14:10 mdlieber99

Any ideas on this?

mdlieber99 avatar Nov 01 '23 04:11 mdlieber99

I even tried re-installing stable diffusion from scratch and it is still not accepting dynamic prompts or wildcards

mdlieber99 avatar Nov 02 '23 17:11 mdlieber99

Have you been able to look into this? My entire workflow is stopped until I resolve this and I've tried everything I can think of. Both wildcards and dynamic prompts have stopped working.

mdlieber99 avatar Nov 04 '23 15:11 mdlieber99

And now it is working again. I have no idea why.

mdlieber99 avatar Nov 05 '23 03:11 mdlieber99

I get a warning from the GUI that there is an incorrect installation. When I have removed the folder from the extensions, and reinstalled it fresh, and rebooted the GUI, it works, and will over several restarts of the UI. It seems to be something is destroyed during the install or requirements stages from my testing, that leaves it inoperable.

ArtHommage avatar Jan 30 '24 01:01 ArtHommage