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

I am trying to run this on Stable Diffusion 2.1 but I keep getting black images #25

Open
nirbenda opened this issue Jan 18, 2023 · 3 comments

Comments

@nirbenda
Copy link

Trying to run the code on Stable Diffusion 2.1 returns black images (filled with nan values)

After investigating the noise_pred_text gets all values -Inf on SD2.1, whereas in 1.4 they get valid values.

Any idea on what had changed between the two that might have caused this?

(Running on linux, am able to work out SD2.1 image generation and dream booth training)

@nirbenda
Copy link
Author

nirbenda commented Jan 18, 2023

UPDATE:

I was able to make the example code run by removing the @torch.autocast("cuda") and changing the torch.float16 to torch.float32.

That said the resulted image was not the expected result but rather a noise background.
output_cat_dog

@MentalGear
Copy link

thanks for the update @nirbenda . Please let me know about any more progress :)

@MingzhaoYang
Copy link

@nirbenda
Resize the input color map to 768*768 and add prediction_type="v_prediction" in the LMSDiscreteScheduler used in pipeline may help.

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

3 participants