dakenf / diffusers.js

diffusers implementation for node.js and browser
https://islamov.ai/diffusers.js/
316 stars 36 forks source link

[Bug] Different results for same seed #9

Open akameswa opened 11 months ago

akameswa commented 11 months ago

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

dakenf commented 11 months ago

Not really. I will take a look on the weekend

kungfooman commented 4 months ago

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.

akameswa commented 4 months ago

I see. Thanks for the explanation!