We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
您好,感谢您的工作。 在阅读您的代码时, 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的形式,请问这样取值特征正确吗?
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
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)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
您好,感谢您的工作。
在阅读您的代码时,
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的形式,请问这样取值特征正确吗?
The text was updated successfully, but these errors were encountered: