ComfyUI
ComfyUI copied to clipboard
Add optional noise_seed to make augmentation deterministic
As currently implemented, SVD_img2vid_Conditioning has an optional augmentation stage with non-deterministic noising of the conditioning image, which prevents one from reproducing exact results in an SVD pipeline if augmentation is used.
I'm suggesting an optional (change widget to input port to ignore) noise_seed for the augmentation stage.
A more proper way is doing it with a generator like this: https://github.com/comfyanonymous/ComfyUI/blob/master/comfy/sample.py#L13
@comfyanonymous changed as requested. This kind of mandates the seed to be a required, not optional, argument, so I changed accordingly.
@harelc the generator can be None when no seed is supplied and it'll use the "global" RNG.
@asagi4 ok, did as you suggested.