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

Seed must be between 0 and 2**32 - 1 #367

Open
xile-INFP opened this issue Nov 9, 2024 · 2 comments
Open

Seed must be between 0 and 2**32 - 1 #367

xile-INFP opened this issue Nov 9, 2024 · 2 comments

Comments

@xile-INFP
Copy link

ComfyUI Error Report

Error Details

  • Node Type: ChinesePrompt_Mix
  • Exception Type: ValueError
  • Exception Message: Seed must be between 0 and 2**32 - 1

Stack Trace

  File "E:\ComfyUI-aki-v1.4\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "E:\ComfyUI-aki-v1.4\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "E:\ComfyUI-aki-v1.4\execution.py", line 163, in _map_node_over_list
    process_inputs(input_data_all, 0)

  File "E:\ComfyUI-aki-v1.4\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-mixlab-nodes\nodes\TextGenerateNode.py", line 351, in run
    prompt =text_generate(text_pipe,t,seed)

  File "E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-mixlab-nodes\nodes\TextGenerateNode.py", line 96, in text_generate
    set_seed(seed)

  File "E:\ComfyUI-aki-v1.4\python\lib\site-packages\transformers\trainer_utils.py", line 103, in set_seed
    np.random.seed(seed)

  File "numpy\\random\\mtrand.pyx", line 4806, in numpy.random.mtrand.seed

  File "numpy\\random\\mtrand.pyx", line 250, in numpy.random.mtrand.RandomState.seed

  File "_mt19937.pyx", line 168, in numpy.random._mt19937.MT19937._legacy_seeding

  File "_mt19937.pyx", line 182, in numpy.random._mt19937.MT19937._legacy_seeding

请问碰到这个问题如何解决?谢谢
@GaGaproes
Copy link

手动填写一个种子 比如 123124234 长一点的,而不是原本的100

@xile-INFP
Copy link
Author

xile-INFP commented Nov 19, 2024

手动填写一个种子 比如 123124234 长一点的,而不是原本的100

无论是默认种子100,还是手动填写一个种子,再执行生成图片后,图片能生成,但是下一个随机种子就会变得太长,导致下一张图片生成出错,总不能每次都得手动填写一个种子吧。。。?

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

2 participants