Meet this interesting work so late.
Here is my little doubt.
|
cam = weight_softmax[idx].dot(feature_conv.reshape((nc, h*w))) |
- The dimension of
weight_softmax[idx] should be 512. However, for layer4's nc, it should be 256. Is there a mistake here? In other words, I suspect that CAM can only be used for the last layer, so as to match the dimension of 512.
- Is there a better process for upsampling the final class activation map? I feel the
resize is a bit rough.
Meet this interesting work so late.
Here is my little doubt.
CAM/pytorch_CAM.py
Line 48 in c63f285
weight_softmax[idx]should be 512. However, forlayer4'snc, it should be 256. Is there a mistake here? In other words, I suspect that CAM can only be used for the last layer, so as to match the dimension of 512.resizeis a bit rough.