diffusers.js icon indicating copy to clipboard operation
diffusers.js copied to clipboard

[Bug] Different results for same seed

Open akameswa opened this issue 2 years ago • 3 comments

Unable to reproduce the result despite using the same parameters. Is it supposed to behave this way?

akameswa avatar Nov 30 '23 19:11 akameswa

Not really. I will take a look on the weekend

dakenf avatar Dec 01 '23 18:12 dakenf

I fixed it here: https://github.com/kungfooman/StableDiffusion.js/commit/4a409a36ca922cb951ca3fb07080d61820a867e4

Instead of letting seedrandom generate new seeds all the time (because seed isn't passed in some stages), I just give every function/method that depends on random the rng function that is generated exactly once based on the given seed.

kungfooman avatar Jun 27 '24 11:06 kungfooman

I see. Thanks for the explanation!

akameswa avatar Jun 29 '24 01:06 akameswa