XingangPan / IBN-Net

Instance-Batch Normalization Networks (ECCV2018)
MIT License
797 stars 113 forks source link

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

Open gyc521zsc opened 5 years ago

gyc521zsc commented 5 years ago

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 \".\"")

chenbinghui1 commented 4 years ago

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