-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Keep getting Rickrolled #71
Comments
Well, my prompts so far have been the original one Maybe some heuristic isn't working properly and is evaluating it as NSFW (looking at this line: stable-diffusion/scripts/txt2img.py Line 92 in 69ae4b3
Either way, the results are with much lower quality that what friends are getting. Could it be the 256x256 resolution that is messing everything up? |
OK, so I managed to get it working. All I did was add the following line in
Not sure what it does, watched it in some YouTube clip. However, it allowed me to generate at 512x512 on my card and now it seems to generate images of fine quality and no rickrolls. |
@mokiat, where did you add that line? |
@magnusviri , I added it immediately after this line: stable-diffusion/scripts/txt2img.py Line 54 in 69ae4b3
so that it becomes:
As far as I understand it, this converts the model from 32bit float to 16bit float, which gives some VRAM room to the GPU. Enough so that 512x512 works. I also figured out how to get img2img to use float16 as well. You need to do the same thing after the following line: stable-diffusion/scripts/img2img.py Line 34 in 69ae4b3
And you also need to change stable-diffusion/scripts/img2img.py Line 54 in 69ae4b3
|
It's the safety checker's doing. When NSFW features are detected, it replaces the image with I've added an See #79 |
@Cabbagec , nice. However, I think in general the model doesn't work well with 256x256. Just look at the cat photos above. |
I am closing this, as there is a workaround and the reason for the Rickroll image was determined. |
Hi,
I am trying to generate some AI art with your code but I keep getting broken results and half of them are the Rickroll meme photo.
Following is the command I used to generate this:
I tried the v1.4 model and get similar results. My videocard is an RTX 2080 Super, 8G VRAM, so I can't try any larger resolutions (they just fail with OOM errors).
I've tried simple commands, as in the README of the repository, or alternative variations of the above command and still get the same result.
At this point in time I am starting to worry if I have downloaded a virus, though I checked the sha values...
Any help would be welcome.
The text was updated successfully, but these errors were encountered: