TinyTerra / ComfyUI_tinyterraNodes

A selection of nodes for Stable Diffusion ComfyUI
GNU General Public License v3.0
341 stars 41 forks source link

Seed not passed to pipeKSampler from pipe? #29

Closed tomvdp closed 11 months ago

tomvdp commented 11 months ago

The seed set in a pipeLoader does not get loaded in a connected pipeKSampler. By default the seed of the Sampler is set to 0. Then that is the value that will be used, not the value from the pipe.

There is this in the code for ttN_TSC_pipeKSampler.sample(), but how does one set the seed in the pipeKSampler to None or undefined? A value of -1 yields an error.

... if seed in (None, 'undefined'): seed = pipe["seed"] else: pipe["seed"] = seed ...

TinyTerra commented 11 months ago

To use the upstream seed value you need to convert the seed widget in the pipeksamp to an input (you don't need to connect the link after)

tomvdp commented 11 months ago

Thank you. Indeed, that was the solution. I missed that option.