-
Notifications
You must be signed in to change notification settings - Fork 282
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
enhancement - translucent background #382
Comments
+1 I'm doing currently very painful procedure because of this. Be able to faceswap on transparent png would be great feature. |
ReActor face swap actually works... technically... if you take the transparent output from layerdiffuse and send it to Extras tab, then use ReActor. However, it totally borks the image and makes it fully opaque Btw I did make an issue over there, but it seems like ultimately ReActor would have to do some kind of magic to be compatible with images with alpha. lllyasviel/sd-forge-layerdiffuse#50 |
Sorry to double post, but it seems like this could be a solution... I'll be trying it personally tomorrow when time permits |
There're several issues we have in SD WebUI with all these things
But it's rather interesting solution if we could get alpha-png from the SD WebUI pipeline to postprocess it without the alpha-channel being cut |
Why using a transparent PNG before the face swap? |
@Gourieff
This would be awesome and solve a lot of pain I'm currently doing in my pipeline to be even able to swap face to cropped characters :D Also really good feature would be if you can return new faces as mask. I bet that would also help a lot of people.
@Woisek One of the reason is because after you bring back bg, several other people are gonna be present and face indexes would be different. It cannot be automated without human intervention. |
a hack from chatgpt - RGB problem is gray is a little off.
|
Huh? What 'several other people are gonna be present' when you make the transparent image opaque with any color ... ?? |
Sry. Should have better describe it. My use case currently is stable-diffusio with inpainting person to custom backround. I have it automated via api but problem here is when the new background has multiple other characters and I don't know which id is the face I want to swap. I have the mask of person but when I feed masked image to reactor, it removes alpha channel. Because of this I have to use another layer that detect head a feeds only the head to reactor and that head is positioned back to composition. tldr: if reactor wouldn't strip alpha channels life would be easier. I can imagine case where you have some people assets without background and you want them face swapped. Now it's impossible. |
So what I said earlier that ChatGPT suggested, is working for my discord bot. I just had to play around with it a bit.
Downsides:
|
Ok guys |
@Gourieff Idk what im doing wrong but it still thinks it's RGB
Using extra tab in webui. Tried even transparent png in target and source. Also could you do the fix also for API? Thx webui version 1.8.0. |
@Dutch77 Did you apply this fix?
Yes, this is in the plan as well |
I'm gonna create seperate ticket. My problem is no longer on topic. |
First, confirm
What happened?
I'm using with https://github.com/layerdiffusion/sd-forge-layerdiffuse + sd forge.
when I use this plugin - it puts in a grid background instead of a transparent pixel.
Steps to reproduce the problem
install sd forge
https://github.com/lllyasviel/stable-diffusion-webui-forge
add extension
https://github.com/layerdiffusion/sd-forge-layerdiffuse
Sysinfo
ubuntu
Relevant console log
Additional information
.
The text was updated successfully, but these errors were encountered: