Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some generated images are noise in one batch in the training #6

Open
zewei-Zhang opened this issue Apr 12, 2023 · 3 comments
Open

Some generated images are noise in one batch in the training #6

zewei-Zhang opened this issue Apr 12, 2023 · 3 comments

Comments

@zewei-Zhang
Copy link

Hi, I recently started training the consistency model using the code provided in the repository. However, I noticed that some generated images in one batch appear as noise. Could you please help me understand the possible reasons for this issue and suggest any solutions or workarounds to fix it? Thank you in advance for your assistance!

@junhsss
Copy link
Owner

junhsss commented Apr 14, 2023

Hi @zewei-Zhang! Thank you for your question. Can you please share the configurations you used?

The code saves samples before training starts for just aesthetic purposes, so it's possible that the noise-like images you observed were these samples. So please check it out!

@zewei-Zhang
Copy link
Author

Hi @zewei-Zhang! Thank you for your question. Can you please share the configurations you used?

The code saves samples before training starts for just aesthetic purposes, so it's possible that the noise-like images you observed were these samples. So please check it out!

Hi, I save the comparison between real images and generated images during the training process, and after a certain number of steps, the generated images still have a lot of complete noise. The configuration I use is like the paper. And I encountered this problem with your code and my own code, as well as with the OpenAI code that just open sourced. This may be related to the learning rate, when I lowered from 4e-4, the issue was solved.

@junhsss
Copy link
Owner

junhsss commented Apr 21, 2023

I'm glad you were able to solve the issue! 😉 Just to let you know, I set the learning rate to 8e-5 and used a batch size of 160 for cifar10 experiment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants