Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with long seed numbers #831

Open
elguachiiii opened this issue Nov 18, 2024 · 0 comments
Open

Error with long seed numbers #831

elguachiiii opened this issue Nov 18, 2024 · 0 comments

Comments

@elguachiiii
Copy link

elguachiiii commented Nov 18, 2024

Iv been encountering this error every time seed is to long, i use random seed so bug is annoying, Tried Manually and it works if i shorten the length of seed so its related to seed length.
Im using ForgeUI

*** Error running process: C:\AI\webui_forge_cu121_torch231\webui\extensions\sd-dynamic-prompts\scripts\dynamic_prompting.py
Traceback (most recent call last):
File "C:\AI\webui_forge_cu121_torch231\webui\modules\scripts.py", line 844, in process
script.process(p, *script_args)
File "C:\AI\webui_forge_cu121_torch231\webui\extensions\sd-dynamic-prompts\sd_dynamic_prompts\dynamic_prompting.py", line 480, in process
all_prompts, all_negative_prompts = generate_prompts(
File "C:\AI\webui_forge_cu121_torch231\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 "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\generators\randomprompt.py", line 71, in generate
prompts.append(str(next(iter(gen))))
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\sampling_context.py", line 128, in
gen = (res.whitespace_squashed() for res in gen)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\samplers\base.py", line 79, in _get_sequence
yield rotate_and_join(sub_generators, separator=command.separator)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\utils.py", line 49, in rotate_and_join
return SamplingResult.joined(rotate_all(generators), separator=separator)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\utils.py", line 41, in rotate_all
return [next(gen) for gen in generators]
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\utils.py", line 41, in
return [next(gen) for gen in generators]
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\samplers\random.py", line 128, in _get_wildcard
yield from context.sample_prompts(value, 1)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\sampling_context.py", line 128, in
gen = (res.whitespace_squashed() for res in gen)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\samplers\base.py", line 79, in _get_sequence
yield rotate_and_join(sub_generators, separator=command.separator)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\utils.py", line 49, in rotate_and_join
return SamplingResult.joined(rotate_all(generators), separator=separator)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\utils.py", line 41, in rotate_all
return [next(gen) for gen in generators]
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\utils.py", line 41, in
return [next(gen) for gen in generators]
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\samplers\random.py", line 128, in _get_wildcard
yield from context.sample_prompts(value, 1)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\sampling_context.py", line 128, in
gen = (res.whitespace_squashed() for res in gen)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\samplers\base.py", line 79, in _get_sequence
yield rotate_and_join(sub_generators, separator=command.separator)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\utils.py", line 49, in rotate_and_join
return SamplingResult.joined(rotate_all(generators), separator=separator)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\utils.py", line 41, in rotate_all
return [next(gen) for gen in generators]
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\utils.py", line 41, in
return [next(gen) for gen in generators]
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\samplers\random.py", line 128, in get_wildcard
yield from context.sample_prompts(value, 1)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\sampling_context.py", line 119, in sample_prompts
command = parse(prompt, parser_config=self.parser_config)
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\dynamicprompts\parser\parse.py", line 557, in parse
tokens = get_cached_parser(parser_config).parse_string(
File "C:\AI\webui_forge_cu121_torch231\system\python\lib\site-packages\pyparsing\core.py", line 1197, in parse_string
raise exc.with_traceback(None)
pyparsing.exceptions.ParseException: Expected end of text, found '
' (at char 0), (line:1, col:1)


That's the error, and it stops using the wildcard when it happens, i tried multiple times by manually copy the seed and shorten it and it works. I'm am total noob in coding so don't have a clue how to fix or were to even look to change the random seed length.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant