sd-forge-layerdiffuse icon indicating copy to clipboard operation
sd-forge-layerdiffuse copied to clipboard

How to convert the generated img to real transparent img?

Open zengjie617789 opened this issue 1 year ago • 7 comments

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.

zengjie617789 avatar Mar 04 '24 06:03 zengjie617789

the transparent image is next to the checkboard image

layerdiffusion avatar Mar 04 '24 07:03 layerdiffusion

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

magejosh avatar Mar 05 '24 02:03 magejosh

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 avatar Mar 05 '24 14:03 protector131090

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 avatar Mar 05 '24 14:03 protector131090

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

protector131090 avatar Mar 05 '24 14:03 protector131090

@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!

victorca25 avatar Mar 12 '24 18:03 victorca25

@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

protector131090 avatar Mar 13 '24 07:03 protector131090