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

Alpha transparency supported? #279

Open
tufeixp opened this issue Dec 28, 2024 · 2 comments
Open

Alpha transparency supported? #279

tufeixp opened this issue Dec 28, 2024 · 2 comments

Comments

@tufeixp
Copy link

tufeixp commented Dec 28, 2024

Does the iw3 project support importing transparency png and exporting with alpha channel keeped?

@nagadomi
Copy link
Owner

Currently not supported, but I can easily support it.
However, typically, the alpha boundary will match the depth boundary, so that artifacts are likely to occur and the quality of the alpha channel is likely not good.

@tufeixp
Copy link
Author

tufeixp commented Dec 29, 2024

It might have some benification for segmentation that feeding the alpha channel to depth generation model, as already implemented inside bg_session, however, the result of embeded onnx u2net is not good. Why not just support loading external well edited alpha channel as segmentation mask, and also the stereorizer have to generate two new alpha channels for both eyes rendering, and encoded in png and yuva420 vp8/9 webm video.

I found keep_alpha is already done with waifu, and for iw3 if png with alpha channel is feed in, the output color for the transparent part turning to pure white, where can I modify the code to allow it happen now or just turn the pure white to pure green?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants