houliping / SASM

AAAI22-2171-SASM
30 stars 2 forks source link

SA-M strategy #5

Open seacloud-0420 opened 2 years ago

seacloud-0420 commented 2 years ago

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?

houliping commented 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: @.***>

seacloud-0420 commented 2 years ago

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.

houliping commented 2 years ago

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.

seacloud-0420 commented 1 year ago

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 commented 1 year ago

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