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

AttributeError: 'Namespace' object has no attribute 'G_n_downsampling' , options netG stylegan2 #13

Closed
chokyungjin opened this issue Aug 26, 2020 · 3 comments

Comments

@chokyungjin
Copy link

Thank you for your good research and I'm very interested in this research.
I have one question.

your last commit add base options like this

'''
parser.add_argument('--netD', type=str, default='basic', choices=['basic', 'n_layers', 'pixel', 'patch', 'tilestylegan2', 'stylegan2'], help='specify discriminator architecture. The basic model is a 70x70 PatchGAN. n_layers allows you to specify the layers in the discriminator')
parser.add_argument('--netG', type=str, default='resnet_9blocks', choices=['resnet_9blocks', 'resnet_6blocks', 'unet_256', 'unet_128', 'stylegan2', 'smallstylegan2', 'resnet_cat'], help='specify generator architecture')

'''
But It still haven't solved that netG , net D param.
Can you tell me how to do it?
Thanks.

@taesungp
Copy link
Owner

Hello, do you mean you are not sure which --netG and --netD to use? Our default setting --netG resnet_9blocks --netD basic should work. The other architectures, such as stylegan2 architecture, will be used in our next release when single image translation is trained.

@majdzr
Copy link

majdzr commented Aug 31, 2020

FYI, the Unet128 and Unet256 also fail as netG.

@taesungp
Copy link
Owner

We added the support for the stylegan2-based networks, designed for the single-image translation. UNet is designed to be used for the CycleGAN baseline, and we don't have support for UNet-based models for CUT.

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

3 participants