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

Set seed min and max to match other nodes #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eric-swanson
Copy link

This matches other nodes that have a seed value, for example the KSampler at https://github.com/comfyanonymous/ComfyUI/blob/master/nodes.py#L1357

This fixes the seed getting stuck at max 2048 in increment mode, or always returning a value <= 2048 in randomize mode.

Repro steps:

  • create a "Random Prompts" node
  • set the seed value to 3000 and control_after_generate to increment
  • Queue Prompt
  • notice that the seed resets to 2048

Fixes seed getting stuck at max 2048
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

Successfully merging this pull request may close these issues.

1 participant