huiyegit / T2I_CL

MIT License
45 stars 16 forks source link

Can you explain why always generate the same images ? #26

Closed ghost closed 9 months ago

ghost commented 9 months ago

When I generate image from example caption, I got the same images for a given caption, why ? I thought that the noise is different each time would lead to different images for the same caption. Can you explain why I am getting the same image ? Thanks

https://github.com/huiyegit/T2I_CL/blob/9cb0023a58018098e0ccbdcda31448b15cd733b8/AttnGAN%2BCL/code/trainer.py#L610

huiyegit commented 9 months ago

If the seeds for randomness are fixed, it may produce the same noise.

Screen Shot 2024-02-11 at 10 10 24 AM
ghost commented 9 months ago

Thanks for your help