-
Notifications
You must be signed in to change notification settings - Fork 357
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
img2img is broken #606
Comments
I can't reproduce this issue with commit 19d876e 8f4ab9a also works for me: I don't know how this could be hapenning on your end, all I can think is that maybe it runs in inpaint mode with an empty mask? But this shouldn't be possible, if the mask is not specified, it's supposed to be initialized to fill the whole frame. |
@stduhpf, I found the reason: compiler filled mask with zeroes. By trials I ended up with #610. |
There is a dangling pointer issue here, arr memory is released after going out of scope, but it is still referenced by mask_image_buffer. I fixed this issue in master, please try it if it can solve your problem. |
Reference image:

Command line:
./sd --model "dreamshaper_8.safetensors" -o "img2img.png" -p "green apple" --mode img2img -i "horse.jpg" --strength 0.4 --type f16
Result is almost or identical to reference.
F32 and quantized types work same.
Regression is introduced in 8f4ab9a commit.
Model version is Stable Diffusion 1.5.
https://civitai.com/models/4384?modelVersionId=128713
The text was updated successfully, but these errors were encountered: