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

hello, there may be a bug for stylegan. #2

Open
wxxxxxxh opened this issue Apr 3, 2020 · 4 comments
Open

hello, there may be a bug for stylegan. #2

wxxxxxxh opened this issue Apr 3, 2020 · 4 comments

Comments

@wxxxxxxh
Copy link

wxxxxxxh commented Apr 3, 2020

Thanks for your great work in GAN inversion.
I find a bug when I set the generator_type as stylegan.
I guess that line 69 in derivable_generator.py should be
self.stylegan = get_gan_model(gan_model_name)
and line 80 should be
self.stylegan.net.cuda(device=device),
otherwise, it may cause an error like this:
AttributeError: 'StyleGANGeneratorNet' object has no attribute 'net'.

@berylsheep-up
Copy link

Thanks for advice!

@YAyaXM
Copy link

YAyaXM commented Jun 28, 2020

AttributeError: 'StyleGAN2GeneratorNet' object has no attribute 'net'

I've had this problem

@YAyaXM
Copy link

YAyaXM commented Jun 28, 2020

Could you give us some answers @JasonGUTU

@YingqingHe
Copy link

I also met this problem, thanks so much for your advice!

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

4 participants