Skip to content
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

[Feature]: API | Faceswap on person with transparent background #394

Closed
Dutch77 opened this issue Mar 11, 2024 · 3 comments
Closed

[Feature]: API | Faceswap on person with transparent background #394

Dutch77 opened this issue Mar 11, 2024 · 3 comments
Labels
✔ done enhancement New feature or request

Comments

@Dutch77
Copy link

Dutch77 commented Mar 11, 2024

Feature description

Currently there is no way of swap face on cropped people because transparent colors become black.

Can we somehow achieve faceswap image with transparent background?

This would be super useful for working with masks.

@Dutch77 Dutch77 added enhancement New feature or request new labels Mar 11, 2024
@Gourieff
Copy link
Owner

Sorry if I got it wrong, but as I mentioned here #382 this is not the issue of ReActor, it can handle RGBA in Extras, but it's the Issue of SD WebUI because it cuts Alpha channel for images provided via the Extras Tab
But if you try to apply this fix (Gourieff/stable-diffusion-webui-forge@main...Gourieff:stable-diffusion-webui-forge:extras--allow-png-rgba) - you'll achieve this result: #382 (comment)
And btw you can work with RGBA via ComfyUI by creating the pipeline with ReActor + Masking (cut what ReActor swapped by masking the face and past into the original transparent image)

@Gourieff Gourieff removed the new label Mar 11, 2024
@Dutch77
Copy link
Author

Dutch77 commented Mar 12, 2024

I'm using API and it produces same result. Is webui also to blame?

@Gourieff
Copy link
Owner

No, ReActor's API needs to be improved to support RGBA
I will implement this soon

@Gourieff Gourieff changed the title [Feature]: Faceswap on person with transparent background [Feature]: API | Faceswap on person with transparent background Mar 12, 2024
Gourieff added a commit that referenced this issue Mar 12, 2024
@Gourieff Gourieff added 🌴 in process the task is in progress ✔ done and removed ✔ accepted 🌴 in process the task is in progress labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✔ done enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants