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

help, how to fix this problem? #161

Open
cosmowind opened this issue Nov 22, 2023 · 1 comment
Open

help, how to fix this problem? #161

cosmowind opened this issue Nov 22, 2023 · 1 comment

Comments

@cosmowind
Copy link

image
image
cpu and gpu all go wrong

@mysticallego
Copy link

mysticallego commented Nov 28, 2023

I just had the same problem. Temporary fix until the devs figure it out:

in "E:\escape\anaconda\envs\riffusion\lib\site-packages\diffusers\pipelines\stable_diffusion\pipeline_stable_diffusion.py"
replace

else:
    do_denormalize = [not has_nsfw for has_nsfw in has_nsfw_concept]

with

else:
    try: do_denormalize = [not has_nsfw for has_nsfw in has_nsfw_concept]
    except TypeError: do_denormalize = [True] * image.shape[0]

edit: see #148 for more info

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