sd-dynamic-prompts icon indicating copy to clipboard operation
sd-dynamic-prompts copied to clipboard

Dynamic Prompts Isn't working

Open TypicalZedF opened this issue 1 year ago • 6 comments

No idea why, but I'm getting this Error when using Dynamic Prompts after a fresh install.

*** Error running process: D:\AI\Stable Diffusion AI\stable-diffusion-webui\extensions\sd-dynamic-prompts\scripts\dynamic_prompting.py
    Traceback (most recent call last):
      File "D:\AI\Stable Diffusion AI\stable-diffusion-webui\modules\scripts.py", line 619, in process
        script.process(p, *script_args)
      File "D:\AI\Stable Diffusion AI\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 "D:\AI\Stable Diffusion AI\stable-diffusion-webui\extensions\sd-dynamic-prompts\sd_dynamic_prompts\helpers.py", line 93, in generate_prompts
        all_prompts = prompt_generator.generate(prompt, num_prompts, seeds=seeds) or [""]
      File "D:\AI\Stable Diffusion AI\stable-diffusion-webui\venv\lib\site-packages\dynamicprompts\generators\randomprompt.py", line 71, in generate
        prompts.append(next(iter(gen)))
    StopIteration

---

TypicalZedF avatar Oct 03 '23 16:10 TypicalZedF

same problem here

esqanor avatar Oct 22 '23 22:10 esqanor

What prompt are you using? What are your settings, etc.?

akx avatar Nov 10 '23 07:11 akx

I got this kind of error message while using ControlNet at the same time.

2023-11-12 20:08:05,129 - ControlNet - INFO - Loading model from cache: control_v11p_sd15_canny_fp16 [b18e0966]
2023-11-12 20:08:05,134 - ControlNet - INFO - Loading preprocessor: invert
2023-11-12 20:08:05,135 - ControlNet - INFO - preprocessor resolution = 512
2023-11-12 20:08:05,364 - ControlNet - INFO - ControlNet Hooked - Time = 0.23506879806518555
*** Error running process: /Users/silver/Playgrounds/AIGC/sd-webui/extensions/sd-dynamic_prompts/scripts/dynamic_prompting.py
    Traceback (most recent call last):
      File "/Users/silver/Playgrounds/AIGC/sd-webui/modules/scripts.py", line 619, in process
        script.process(p, *script_args)
      File "/Users/silver/Playgrounds/AIGC/sd-webui/extensions/sd-dynamic_prompts/sd_dynamic_prompts/dynamic_prompting.py", line 485, in process
        all_prompts, all_negative_prompts = generate_prompts(
      File "/Users/silver/Playgrounds/AIGC/sd-webui/extensions/sd-dynamic_prompts/sd_dynamic_prompts/helpers.py", line 93, in generate_prompts
        all_prompts = prompt_generator.generate(prompt, num_prompts, seeds=seeds) or [""]
      File "/Users/silver/Playgrounds/AIGC/sd-webui/venv/lib/python3.10/site-packages/dynamicprompts/generators/randomprompt.py", line 71, in generate
        prompts.append(str(next(iter(gen))))
    StopIteration

925-Studio avatar Nov 12 '23 12:11 925-Studio

I get the same error as above when prompt is empty. Typing even just one letter in the prompt and the error goes away. Negative prompt, or any other settings/model don't seem to matter.

stable-diffusion-webui dev v1.6.0-400-gf0f100e6 sd-dynamic-prompts aedb3e4b

TheLounger avatar Nov 28 '23 16:11 TheLounger

I get the same error as above when prompt is empty. Typing even just one letter in the prompt and the error goes away. Negative prompt, or any other settings/model don't seem to matter.

stable-diffusion-webui dev v1.6.0-400-gf0f100e6 sd-dynamic-prompts aedb3e4b

For real? It freaks out because of nothing in text boxes? Cause for me it freaked out from the built-in script that comes with by default called img2imgalt when I had not filled in prompt.

silveroxides avatar Dec 09 '23 02:12 silveroxides

Ditto when I have empty prompts...

MrMxyzptlk avatar Apr 02 '24 17:04 MrMxyzptlk