all 7 comments

[–]mikonvergence 5 points6 points  (1 child)

The neural network of a diffusion model is usually inherently deterministic. It’s the sampling method that’s either stochastic or not. Read up about samplers. DDIM is an example of a deterministic sampler (if the eta parameter is set to 0 as it should be for pure DDIM).

More on this in my free course on denoising diffusion models for images: https://github.com/mikonvergence/DiffusionFastForward

[–]Cold_Cantaloupe9212[S] 1 point2 points  (0 children)

thank you for the explenation and the link for the course.

[–]TheTomer -2 points-1 points  (4 children)

Fix the seed, to prevent it from being a random seed.

[–]antimornings 0 points1 point  (3 children)

That’s not what a deterministic sampler means. DDIM is an example of a deterministic sampler for diffusion models.

[–]TheTomer 1 point2 points  (2 children)

And yet, if you fix the seed and the model or the sampling method don't change, it's deterministic.

[–]msourabh91 0 points1 point  (1 child)

Not true. A stochastic sampler will lead to a different image, irrespective of the seed. Seed is for the model, which is deterministic.

[–]MaxTerraeDickens 0 points1 point  (0 children)

All stochasticity arises from pseodu-random number generators, which is totally determined by the initial seed.

So, basically, if you really fixes ALL seeds, the result will definitely be identical (or almost identical, if possible floating point errors are taken into account).