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

Query realted if the model can give RGBA image as output? #1662

Open
roshan2024nar opened this issue Jun 3, 2024 · 2 comments
Open

Query realted if the model can give RGBA image as output? #1662

roshan2024nar opened this issue Jun 3, 2024 · 2 comments

Comments

@roshan2024nar
Copy link

Hello,

just wanted to know can i train the model for taking jpg or png(Transperent) as input and then get result in png(Transperent).....
how should i modify the code ?

Thank you for the help :)

@Jiwno
Copy link

Jiwno commented Sep 12, 2024

You can train png image if you change --input_nc and --output_nc into 4.
And there might be an converting code in loading the data in file "aligned_dataset.py".
You have to delete the convert code of PIL library.
I hope this help.

@Jiwno
Copy link

Jiwno commented Sep 12, 2024

Oh, and you might also have to change the normalizing part in file "base_dataset.py"
I remember that the code is for 3 dimension image so you have to add one more dimension when it nomalize it.

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