WassersteinGAN
WassersteinGAN copied to clipboard
module name can\'t contain "."
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?
you can just change all "." in arg. "name" of function "add_module" to "_" or other support character