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

Issue a black background is added to the transparent image #167

Open
Ghaleb-alnakhlani opened this issue May 30, 2022 · 1 comment
Open

Comments

@Ghaleb-alnakhlani
Copy link

Ghaleb-alnakhlani commented May 30, 2022

I am using the SPADE model to generate objects from a label mask.
The model is training and everything is running smoothly, however, I have noticed that the images are not the same as the input image, I have prepared the dataset and made the background transparent, but when the model loads the images it adds a black background, thus the generated images will have a black background as well. If you don`t mind helping me to overcome this issue.
Input in train_B looks like this

Generated images in checkpoints have been changed to this (added black background)

Synthesized - Real - Label
So how do I get the images back to the original form similar to the image in train_B, without a background?

Best regards,
Ghaleb

@Ukuer
Copy link

Ukuer commented Oct 18, 2023

the transparent region can not be converted to RGB space. you can make it with white or black bg, and post-process the final outputs.

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