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

关于代码的一点疑问 #6

Open
lushouyi opened this issue Dec 19, 2024 · 0 comments
Open

关于代码的一点疑问 #6

lushouyi opened this issue Dec 19, 2024 · 0 comments

Comments

@lushouyi
Copy link

您好,感谢您的工作。
在阅读您的代码时,
centers = Feature_Gather(x, points_split) # points是直接对x的feature gather value_centers = Feature_Gather(value, points_split)
对这一部分产生疑问。
points_split[:, :, 0] = points_split[:, :, 0] / (size_range[0] - 1.0) * 2.0 - 1.0 points_split[:, :, 1] = points_split[:, :, 1] / (size_range[1] - 1.0) * 2.0 - 1.0
points_split经过以上两步转换到了[-1,1]的范围,但这是相对于整体图像的。然而,x和value经过
x = rearrange(x, "b c (f1 h) (f2 w) -> (b f1 f2) c h w", f1=self.fold_h, f2=self.fold_w) value = rearrange(value, "b c (f1 h) (f2 w) -> (b f1 f2) c h w", f1=self.fold_h, f2=self.fold_w)
已经变为了block的形式,请问这样取值特征正确吗?

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