SASM icon indicating copy to clipboard operation
SASM copied to clipboard

SA-M strategy

Open seacloud-0420 opened this issue 2 years ago • 5 comments

Hi, I found that the formula for calculating distance in the code is different from that in the paper. Is the effect of using the formula in the code similar to that in the paper? Also,why is the formula for calculating distance different in [0,90] and other angles?

seacloud-0420 avatar Jun 14 '22 02:06 seacloud-0420

A1: To handle some out-of-bounds cases, the calculation in the code is (distance+1), which can be seen as a normalization processing and has little impact on the performance. A2: The angle is converted to [0,pi/2] in the calculate processing.

---- Replied Message ---- | From | @.> | | Date | 06/14/2022 10:20 | | To | @.> | | Cc | @.***> | | Subject | [houliping/SASM] SA-M strategy (Issue #5) |

Hi, I found that the formula for calculating distance in the code is different from that in the paper. Is the effect of using the formula in the code similar to that in the paper? Also,why is the formula for calculating distance different in [0,90] and other angles?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

houliping avatar Jun 15 '22 09:06 houliping

Thank you for your answer. I still don't understand. 1、The calculation in the code (distances = (bboxes_points[:, None, :] - gt_points[None, :, :]).pow(2).sum(-1).sqrt() ) is different from that in the paper. 1655301267968 2、Why is the angle converted to [0, pi/2] during calculation. I still don't understand.

seacloud-0420 avatar Jun 15 '22 13:06 seacloud-0420

The code for the calculation of Equation 4 in the paper is shown in the figure, which is consistent with the paper. You can see it in the files SASM/sasm_reppoints/sam_reppoints_head.py and SASM/sasm_s2anet/sam_anchor_target.py. 屏幕快照 2022-06-16 10 08 41

The calculation of angles with pi is more accurate and convenient, which is a common way to handle data.

houliping avatar Jun 16 '22 02:06 houliping

Hi, why the formula for calculating distance weights in the code is different from that in the paper. The paper is 1668954134451, the code is 1668954171184. When the formula in the code is changed to be the same as that in the paper, the effect is very poor and almost does not work.

seacloud-0420 avatar Nov 20 '22 14:11 seacloud-0420

@houliping Hi,please help me answer the above question if it is convenient. Thank you very much.

seacloud-0420 avatar Nov 21 '22 14:11 seacloud-0420