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

How to train StyleGAN2 with labeled dataset #58

Open
TccccD opened this issue Mar 24, 2021 · 2 comments
Open

How to train StyleGAN2 with labeled dataset #58

TccccD opened this issue Mar 24, 2021 · 2 comments

Comments

@TccccD
Copy link

TccccD commented Mar 24, 2021

Hello, I found that compared with the native stylegan2, your code specifically removes the label. I want to ask you whether you have tried to add the label for training, how is the effect?

@TccccD
Copy link
Author

TccccD commented Mar 24, 2021

@zsyzzsoft

@zsyzzsoft
Copy link
Collaborator

I did try conditional generation before, and you will be able to do it if you make some changes in loss.py (e.g. something like real_scores = reduce_sum(D(reals) * one_hot(label)). Or you may try the PyTorch version to run conditional generation.

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