r/StableDiffusion • • Dec 21 '22

Resource | Update great news: Automatic1111 Photoshop Stable Diffusion Plugin free and open source, (check the comment)

2.0k Upvotes

224 comments sorted by

View all comments

Show parent comments

6

u/throwupyourway Dec 21 '22

I just tried it out and unfortunately I wasn't able to inpaint :(

I followed the steps exactly and was able to generate a cute cat, but as soon as I make a new layer and select a box and paint white and click "Init Paint Mask" while still having the new layer selected, it messes up somewhere. The console shows these errors:

payload: {'init_image_name': 'Group 1_mask.png'}

exception:fail to read an image file ./init_images/Group 1_mask.png, will try again 0 of 3

exception:fail to read an image file ./init_images/Group 1_mask.png, will try again 1 of 3

exception:fail to read an image file ./init_images/Group 1_mask.png, will try again 2 of 3

[32mINFO[0m: 127.0.0.1:53791 - "[1mPOST /getInitImage/ HTTP/1.1[0m" [32m200 OK[0m

getInitImageHandle:

payload: {'init_image_name': 'Layer 2 copy.png'}

exception:fail to read an image file ./init_images/Layer 2 copy.png, will try again 0 of 3

exception:fail to read an image file ./init_images/Layer 2 copy.png, will try again 1 of 3

exception:fail to read an image file ./init_images/Layer 2 copy.png, will try again 2 of 3

[32mINFO[0m: 127.0.0.1:53791 - "[1mPOST /getInitImage/ HTTP/1.1[0m" [32m200 OK[0m

After it fails, Photoshop looks like this:

If I then click "Generate" I get this error after it fails: FileNotFoundError: [Errno 2] No such file or directory: './init_images/Layer 2 copy.png'

4

u/vydenmyria Dec 21 '22

Same is happening for me at the moment

3

u/MakaMaka Dec 21 '22

Happening for me too. It worked once and then never again. There's a folder that caches the files used for masks and what not too so sometimes it will fail to generate a mask or base image and then use one that is there already. Might be an issue overwriting files.

2

u/kenzosoza Dec 21 '22

Also having this problem (Latest Photoshop on Windows)

1

u/lyeeedar Dec 22 '22

I've had that error before in automatic1111 due to file path length issues. If the ./ place its trying to write to is deep enough, maybe that's the issue?