使用了自定义的CBAM,然后出现了没遇到过的问题
报红如下:
C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for blocks.0.cbam.channelAttention.fc1.weight. blocks.0.cbam.channelAttention.fc1.weight is not found in the provided dict.
warnings.warn(f"Skip loading for {key}. " + str(err))
C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for blocks.0.cbam.channelAttention.fc1.bias. blocks.0.cbam.channelAttention.fc1.bias is not found in the provided dict.
warnings.warn(f"Skip loading for {key}. " + str(err))
C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for blocks.0.cbam.channelAttention.fc2.weight. blocks.0.cbam.channelAttention.fc2.weight is not found in the provided dict.
warnings.warn(f"Skip loading for {key}. " + str(err))
C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for blocks.0.cbam.channelAttention.fc2.bias. blocks.0.cbam.channelAttention.fc2.bias is not found in the provided dict.
warnings.warn(f"Skip loading for {key}. " + str(err))
C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for blocks.0.cbam.spatialAttention.conv1.weight. blocks.0.cbam.spatialAttention.conv1.weight is not found in the provided dict.
warnings.warn(f"Skip loading for {key}. " + str(err))
C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for blocks.0.cbam.spatialAttention.conv1.bias. blocks.0.cbam.spatialAttention.conv1.bias is not found in the provided dict.
warnings.warn(f"Skip loading for {key}. " + str(err))
C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for blocks.1.cbam.channelAttention.fc1.weight. blocks.1.cbam.channelAttention.fc1.weight is not found in the provided dict.
warnings.warn(f"Skip loading for {key}. " + str(err))
C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for blocks.1.cbam.channelAttention.fc1.bias. blocks.1.cbam.channelAttention.fc1.bias is not found in the provided dict.
warnings.warn(f"Skip loading for {key}. " + str(err))
C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for blocks.1.cbam.channelAttention.fc2.weight. blocks.1.cbam.channelAttention.fc2.weight is not found in the provided dict.
warnings.warn(f"Skip loading for {key}. " + str(err))