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

Conditional anyres-gan implementation failure #3

Open
WenjinFu opened this issue Jul 12, 2022 · 1 comment
Open

Conditional anyres-gan implementation failure #3

WenjinFu opened this issue Jul 12, 2022 · 1 comment

Comments

@WenjinFu
Copy link

I am working on generating conditional food images but met some errors on loading labels for patch data. I strictly follow the instructions in the file "train.sh" and "train.py". In the first stage of training, I first tried to leverage the pre-trained network of conditional stylegan3 to train the patch datasets in stage two and I got the following errors:
conditional img gen error
And it is caused by None type tensor as you can see from the terminal output messages.
I read the paper, the authors use the unconditional image generation method. But I want to know if this method is compatible with conditional image generation.

@chail
Copy link
Owner

chail commented Jul 29, 2022

We only tried unconditional generation, but it should be compatible with the proper modifications. I suppose you'll need to modify the function compute_scale_inputs; in particular the mapped_scale = G.scale_mapping(scale, None). Here I'm assuming that G.c_dim is None (for unconditional generation), but you could have it also take in a class latent for class-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