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

module name can\'t contain "." #68

Open
IlSLY opened this issue Dec 17, 2018 · 1 comment
Open

module name can\'t contain "." #68

IlSLY opened this issue Dec 17, 2018 · 1 comment

Comments

@IlSLY
Copy link

IlSLY commented Dec 17, 2018

Traceback (most recent call last): File "main.py", line 112, in <module> netG = dcgan.DCGAN_G(opt.imageSize, nz, nc, ngf, ngpu, n_extra_layers) File "/home/mali/WassersteinGAN-master/models/dcgan.py", line 69, in __init__ nn.ConvTranspose2d(nz, cngf, 4, 1, 0, bias=False)) File "/home/mali/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 180, in add_module raise KeyError("module name can't contain \".\"") KeyError: 'module name can\'t contain "."'
the version on my computer are: pytorch 1.0.0; torchvision 0.2.1. I guess it should be run in old version, could anyone tell me which version can run it?

@whuCanon
Copy link

you can just change all "." in arg. "name" of function "add_module" to "_" or other support character

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