JDAI-CV / LIO

Look-into-Object: Self-supervised Structure Modeling for Object Recognition (CVPR 2020)
Other
113 stars 24 forks source link

AttributeError: 'resnet_swap_2loss_add' object has no attribute 'module' #11

Open MercuialC opened 3 years ago

MercuialC commented 3 years ago

感谢您优秀的工作! 我使用了您的环境,但是#172 if isinstance(m.module, Classifier) or 'lrx' in key:...此处报错 AttributeError: 'resnet_swap_2loss_add' object has no attribute 'module'

xuyangwang0825 commented 3 years ago

相同的问题,想问下你解决了吗?

xuyangwang0825 commented 3 years ago

相同的问题,想问下你解决了吗?

直接把这个判断注释掉就可以了

peggysoul commented 2 years ago

同样的问题+1,请问你解决了吗

Laniakea928 commented 2 years ago

相同的问题,想问下你解决了吗?

直接把这个判断注释掉就可以了 请问单注释掉这个判断能顺利运行吗?