Hi,
When training a model based on the resnet50 network, the following error occurred(sometimes it can run, sometimes it will report an error):
Traceback (most recent call last):
  File "E:\Programs\MDA_2src\mfsan.py", line 158, in <module>
    model = models.MFSAN(num_classes=3)
  File "E:\Programs\MDA_2src\resnet.py", line 184, in __init__
    self.sharedNet = resnet50(True)
  File "E:\Programs\MDA_2src\resnet.py", line 271, in resnet50
    model = ResNet(Bottleneck, [3, 4, 6, 3], **kwargs)
  File "E:\Programs\MDA_2src\resnet.py", line 144, in __init__
    n = m.kernel_size[0] * m.kernel_size[1] * m.planes
  File "D:\Anaconda\lib\site-packages\torch\nn\modules\module.py", line 518, in __getattr__
    type(self).__name__, name))
AttributeError: 'Conv2d' object has no attribute 'planes'
[Finished in 1.4s with exit code 1]