mganprior icon indicating copy to clipboard operation
mganprior copied to clipboard

hello, there may be a bug for stylegan.

Open wxxxxxxh opened this issue 4 years ago • 4 comments

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'.

wxxxxxxh avatar Apr 03 '20 09:04 wxxxxxxh

Thanks for advice!

berylsheep-up avatar Apr 10 '20 03:04 berylsheep-up

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

I've had this problem

YAyaXM avatar Jun 28 '20 23:06 YAyaXM

Could you give us some answers @JasonGUTU

YAyaXM avatar Jun 28 '20 23:06 YAyaXM

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

YingqingHe avatar Apr 02 '21 11:04 YingqingHe