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

关于SpatialMemory #1

Open
xiaoye-hhh opened this issue Jun 8, 2023 · 0 comments
Open

关于SpatialMemory #1

xiaoye-hhh opened this issue Jun 8, 2023 · 0 comments

Comments

@xiaoye-hhh
Copy link

xiaoye-hhh commented Jun 8, 2023

SpatialMemory first needs to convert the shape of the query when calculating, but I have some doubts about this conversion process:

        BS, self.feat_dim, H, W = query.shape
        query_rs = query.reshape(-1, self.feat_dim)

I think it should be:

        BS, self.feat_dim, H, W = query.shape
        query_rs = query.permute(0, 2, 3, 1).reshape(-1, feat_dim)
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