Open seacloud-0420 opened 2 years ago
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: @.***>
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. 2、Why is the angle converted to [0, pi/2] during calculation. I still don't understand.
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.
The calculation of angles with pi is more accurate and convenient, which is a common way to handle data.
Hi, why the formula for calculating distance weights in the code is different from that in the paper. The paper is , the code is . 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.
@houliping Hi,please help me answer the above question if it is convenient. Thank you very much.
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?