Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1. Dimension of weight_softmax[idx] and features channel 2. Upsampling (directly resize)? #48

Open
qsunyuan opened this issue Apr 14, 2022 · 1 comment

Comments

@qsunyuan
Copy link

Meet this interesting work so late.

Here is my little doubt.

cam = weight_softmax[idx].dot(feature_conv.reshape((nc, h*w)))

  1. 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.
  2. Is there a better process for upsampling the final class activation map? I feel the resize is a bit rough.
@qsunyuan
Copy link
Author

The resize code link:

heatmap = cv2.applyColorMap(cv2.resize(CAMs[0],(width, height)), cv2.COLORMAP_JET)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant