BangguWu / ECANet

Code for ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks
MIT License
1.24k stars 197 forks source link

File "C:\Users\the-moon\Desktop\python\ECA-Net\models\eca_resnet.py", line 100, in __init__ self.layer1 = self._make_layer(block, 64, layers[0], int(k_size[0])) TypeError: 'NoneType' object is not subscriptable #27

Closed zh9369 closed 4 years ago

zh9369 commented 4 years ago

how to resolve this problem?

zh9369 commented 4 years ago

i found that k_size[0]=None,but k_size=[3, 3, 3, 3],it has the value.

BangguWu commented 4 years ago

Our code has no problems and can run normally. Other researchers have also successfully conducted experiments. You can carefully check your runtime environment or modify the part yourself. Or give a more detailed error message.