Closed
Description
I'm getting the following error using pytorch (1.0.1) and torchvision (0.2.2) on Windows 10.
Traceback (most recent call last):
File "main_dense.py", line 338, in <module>
main()
File "main_dense.py", line 75, in main
net = densenet(num_layers=args.num_layer, bottleneck_factor=args.bottleneck_factor, growth_rate=args.growth_rate, num_stack=args.num_stack)
File "C:\Users\nisha\Downloads\poseEstimation-master\model\stacked_HG_with_densemodule.py", line 167, in densenet
return Densenet(num_layers, bottleneck_factor, growth_rate, num_stack)
File "C:\Users\nisha\Downloads\poseEstimation-master\model\stacked_HG_with_densemodule.py", line 100, in __init__
bottleneck_factor=self.bottleneck_factor, growth_rate=self.growth_rate)
File "C:\Users\nisha\Downloads\poseEstimation-master\model\stacked_HG_with_densemodule.py", line 26, in __init__
layer = _DenseLayer(num_input_features + i * growth_rate, growth_rate, bottleneck_factor)
File "C:\Users\nisha\Downloads\poseEstimation-master\model\stacked_HG_with_densemodule.py", line 8, in __init__
self.add_module('norm.1', nn.BatchNorm2d(num_input_features)),
File "C:\Users\nisha\Anaconda3\envs\tf_gpu\lib\site-packages\torch\nn\modules\module.py", line 178, in add_module
raise KeyError("module name can't contain \".\"")
KeyError: 'module name can\'t contain "."'
Can someone help solve this?