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

How to extract stage feature maps from the model? #4

Open
ma7555 opened this issue Aug 18, 2022 · 0 comments
Open

How to extract stage feature maps from the model? #4

ma7555 opened this issue Aug 18, 2022 · 0 comments

Comments

@ma7555
Copy link

ma7555 commented Aug 18, 2022

Hello wangermeng,

I want to implement this as a backbone in a different larger model. I need to be able to extract the 4 feature maps from different stages.
Upon checking model.summary() I do not find any layers with output equal to the paper reference. (H/32 W/32, C1) as an example for F1.

image

I have found out that after every attention block the output is:

(None, 3136, 64) >> (None, 56, 56, 64)
(None, 784, 128) >> (None, 28, 28, 128)
(None, 196, 320) >> (None, 14, 14, 64)
(None, 50, 512) >> (None, 7, 7, 512) ????????????????????????

The last layer should be (None, 49, 512)?

The line responsible for this change is where a 1 is added in the last stage

num_patch = feat_size_list[i][0] * feat_size_list[i][1] + 1

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