You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For even the most common prompt "a photo of an astronaut riding a horse on mars", any image resolution lower than 512x512 either outputs a glitchy image or a complete black (stating it's NSFW). Tried "iphone from 2050" which again generates similar result. potentialBug_diffuser_imageResolution.zip
Reproduction
fromdiffusersimportStableDiffusionPipelineimporttorchmodel_id="runwayml/stable-diffusion-v1-5"pipe=StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe=pipe.to("cuda")
prompt="a photo of an astronaut riding a horse on mars"image=pipe(prompt, height=128, width=128).images[0]
#run a few times and it should classify most of the images as NSFW### Logs_Noresponse_### System Info-`transformers`version: 4.26.0-Platform: Linux-5.10.147+-x86_64-with-glibc2.29-Pythonversion: 3.8.10-Huggingface_hubversion: 0.12.0-PyTorchversion (GPU?): 1.13.1+cu116 (True)
-Tensorflowversion (GPU?): 2.9.2 (True)
-Flaxversion (CPU?/GPU?/TPU?): notinstalled (NA)
-Jaxversion: notinstalled-JaxLibversion: notinstalled-UsingGPUinscript?: <fillin>-Usingdistributedorparallelset-upinscript?: <fillin>
The text was updated successfully, but these errors were encountered:
singh-robbie
changed the title
Image resolution lower than 512x512 results in buggy or black images
Image resolution lower than 512x512 results in glitchy or black images
Jan 25, 2023
In this case, we cannot do much and can only recommend to turn of the safety checker with:
fromdiffusersimportStableDiffusionPipelineimporttorchmodel_id="runwayml/stable-diffusion-v1-5"pipe=StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None)
pipe=pipe.to("cuda")
prompt="a photo of an astronaut riding a horse on mars"image=pipe(prompt, height=128, width=128).images[0]
#run a few times and it should classify most of the images as NSFW
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Describe the bug
For even the most common prompt "a photo of an astronaut riding a horse on mars", any image resolution lower than 512x512 either outputs a glitchy image or a complete black (stating it's NSFW). Tried "iphone from 2050" which again generates similar result.
potentialBug_diffuser_imageResolution.zip
Reproduction
The text was updated successfully, but these errors were encountered: