ASFF icon indicating copy to clipboard operation
ASFF copied to clipboard

AttributeError: 'YOLOv3' object has no attribute 'module'!

Open xaohuicai opened this issue 4 years ago • 3 comments

model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i]) torch.save(model.module.state_dict..) all meet this problem,I don't know how to solve this.

xaohuicai avatar Mar 20 '20 15:03 xaohuicai

model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i]) torch.save(model.module.state_dict..) all meet this problem,I don't know how to solve this.

may be you can replace it with model.state_dict..

missbook520 avatar May 07 '20 14:05 missbook520

model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i]) torch.save(model.module.state_dict..) all meet this problem,I don't know how to solve this.

are you meet the error? RuntimeError: Function 'MulBackward0' returned nan values in its 1th output.

missbook520 avatar May 07 '20 14:05 missbook520

model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i]) torch.save(model.module.state_dict..) all meet this problem,I don't know how to solve this.

may be you can replace it with model.state_dict.. thanks!I will try it.

xaohuicai avatar May 11 '20 07:05 xaohuicai