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

Can I train images with transparency? #156

Open
1378dm opened this issue May 3, 2022 · 1 comment
Open

Can I train images with transparency? #156

1378dm opened this issue May 3, 2022 · 1 comment

Comments

@1378dm
Copy link

1378dm commented May 3, 2022

Hello everyone, I want to train some images with transparency, but it doesn't seem to allow me to do so. Does anyone have a way?

@PDillis
Copy link

PDillis commented May 3, 2022

In short: there are a lot of changes that need to be done (in particular in dataset_tool.py and training_loop.py), but it's possible. Doing some tests to see that training runs correctly and then generation can be done, so if it's possible, I'll add it to my fork. The starting model snapshot if the dataset has transparency with --cfg=stylegan2:
image

and with --cfg=stylegan3-t:
image

So it looks good so far. I will let you know when my tests are complete. Btw, make sure your entire dataset has transparency and not just some, as otherwise, things will break (can't change halfway the dataset type).

PDillis added a commit to PDillis/stylegan3-fun that referenced this issue May 4, 2022
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