-
Notifications
You must be signed in to change notification settings - Fork 28
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
If the positions "x_coor" and "y_coor" should be swapped in Line 466 and 468 det3d/models/necks/rpn_transformer? #25
Comments
Thanks for reporting this error. I think the position is correct. I generate the index in the 2D matrix in this way: centerformer/det3d/models/necks/rpn_transformer.py Lines 247 to 250 in 5a949b8
Here neighbor_coords[:, :, :, 1] comes from the y_coord and neighbor_coords[:, :, :, 0] comes from the x_coord .
However, the bug is probably this: centerformer/det3d/models/necks/rpn_transformer.py Lines 244 to 246 in 5a949b8
The coordinates should be clamped separately using their own size rather than just assuming H = W .
I don't have a machine at hand to test. Can you check if changing this can fix your error? |
Oh, I see. So the I will recheck the code just in case there are some other bugs. |
Since height dimension ( |
The order of the |
Oh, I see. I will go through it again and recheck it. Thank you so much for the clarification. |
Great! If you have any further questions or concerns, feel free to reopen the issue. |
Those two lines seem flawless.
But coincidently, I changed the range of PC, which made H unequal to W. I encountered this:
Afte debugging, in
get_multi_scale_feature
, center_pos sometimes fell out of the range of feat. After checking backwards, I found some elements of y_coor > W exist. in Line 468.After some experiments I tried, this problem can be fixed by swaping x_coord and y_coord.
The text was updated successfully, but these errors were encountered: