lllyasviel / sd-forge-layerdiffuse

[WIP] Layer Diffusion for WebUI (via Forge)
Apache License 2.0
3.86k stars 331 forks source link

How to convert the generated img to real transparent img? #31

Open zengjie617789 opened 8 months ago

zengjie617789 commented 8 months ago

Thanks for the great work. It seems the generated img isnot real img with transparent background, instead a background with chessboard. I want to replace the corrsponding pixel by photoshop, but it failed. I want to know to how to implement to get a img with a transparent channel.

layerdiffusion commented 8 months ago

the transparent image is next to the checkboard image

magejosh commented 8 months ago

Not when i generate them. Is it possible having an alternative output dir prevents saving of the transparent background version?

protector131090 commented 8 months ago

Not when i generate them. Is it possible having an alternative output dir prevents saving of the transparent background version?

have the same problem. My transparent PNGs go to %temp% folder for some reason... trying reinstalling course if you use batch count different from 1 they wont save at all...

protector131090 commented 8 months ago

the transparent image is next to the checkboard image

Except there arent any. Transparent Image goes to temp folder but if batch is more than 1 it wont save at all

protector131090 commented 8 months ago

clean install of forge didnt do anything. Still the same result. to outputs saved with checkerboard and to temp/gradio is the one transparent.... 1 2

victorca25 commented 8 months ago

@layerdiffusion there is a small error around the concatenation of the checkerboard image and the transparent image in the "patch()" function in models.py.

I noticed it's not only that the wrong image is being saved to the output directory, but also that ADetailer is applied to the wrong image :)

Cheers!

protector131090 commented 7 months ago

@layerdiffusion there is a small error around the concatenation of the checkerboard image and the transparent image in the "patch()" function in models.py.

I noticed it's not only that the wrong image is being saved to the output directory, but also that ADetailer is applied to the wrong image :)

Cheers!

didnt change anything for me... I mean it did but change is that checkerboard now just pur eblack. Adetailer still dont work with transparent and trasparent wont be saved