IBN-Net icon indicating copy to clipboard operation
IBN-Net copied to clipboard

KeyError: 'module name can\'t contain "."'

Open gyc521zsc opened this issue 5 years ago • 1 comments

File "/home/gyc/Ranked_Person_ReID-master/modeling/backbones/densenet121_ibn_a.py", line 41, in densenet121_ibn_a **kwargs) File "/home/gyc/Ranked_Person_ReID-master/modeling/backbones/densenet121_ibn_a.py", line 168, in init bn_size=bn_size, growth_rate=growth_rate, drop_rate=drop_rate, ibn=ibn) File "/home/gyc/Ranked_Person_ReID-master/modeling/backbones/densenet121_ibn_a.py", line 117, in init layer = _DenseLayer(num_input_features + i * growth_rate, growth_rate, bn_size, drop_rate, True) File "/home/gyc/Ranked_Person_ReID-master/modeling/backbones/densenet121_ibn_a.py", line 93, in init self.add_module('norm.1', BNIN(num_input_features)), File "/home/gyc/anaconda3/envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 178, in add_module raise KeyError("module name can't contain "."")

gyc521zsc avatar Aug 09 '19 05:08 gyc521zsc

@gyc521zsc Hi, I met the same problem, have you solved it?

chenbinghui1 avatar Nov 13 '19 08:11 chenbinghui1