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

support diffusers #36

Open
akk-123 opened this issue Feb 26, 2024 · 6 comments
Open

support diffusers #36

akk-123 opened this issue Feb 26, 2024 · 6 comments

Comments

@akk-123
Copy link

akk-123 commented Feb 26, 2024

The current code is a bit bloated, can you provide more concise diffusers code?

@YangLing0818
Copy link
Owner

Thanks for your attention! In the near future, we will provide diffusers-based code.

@YangLing0818
Copy link
Owner

The current code is a bit bloated, can you provide more concise diffusers code?

Thanks for your waiting, we now have supported diffusers.

@akk-123 akk-123 closed this as completed Apr 9, 2024
@akk-123 akk-123 reopened this Apr 10, 2024
@akk-123
Copy link
Author

akk-123 commented Apr 10, 2024

@YangLing0818 I test it, but I get a black img, I found latents here is all NaN

I test with model runwayml/stable-diffusion-v1-5 and use gpt-4

@ZhaochenYu0201
Copy link
Collaborator

Thank you for your feedback. If you get black image, it may because of the NSFW filter. The prompt you have given or generated image might be closer to one of the not allowed content. In such cases you can get black image as output . You can use different prompt and try different random seed to test if it is becasue of the NSFW filter. And it could also be becasue of your device , which may not support half-precision, try to use full-precision instead.

@akk-123
Copy link
Author

akk-123 commented Apr 11, 2024

Not because it’s NSFW, I set safe_checker is None, and I sad that latents is also NAN, I try fp32, It's same

@ZhaochenYu0201
Copy link
Collaborator

ZhaochenYu0201 commented Apr 11, 2024

Thank you for your feedback ! I have tested the code in RPG.py on different devices including A100-80G, A100-40G and RTX4090. For me, model runwayml/stable-diffusion-v1-5 in full-precision and half-precision works well with A100, and RTX4090 works well with full-precision. Would you mind running diffusers-cli env and pasting the output from the command? Also, please let us know the GPU and the code you are using . Thank you! You can also refer to the issue which has been handled here huggingface/diffusers#2153

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