TinyTerra / ComfyUI_tinyterraNodes

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

Seed not passed to pipeKSampler from pipe? #29

Closed tomvdp closed 1 year ago

tomvdp commented 1 year 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 1 year 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 1 year ago

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