adieyal / comfyui-dynamicprompts

ComfyUI custom nodes for Dynamic Prompts
MIT License
187 stars 20 forks source link

Set seed min and max to match other nodes #43

Open eric-swanson opened 4 months ago

eric-swanson commented 4 months ago

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: