FCOS.Pytorch icon indicating copy to clipboard operation
FCOS.Pytorch copied to clipboard

Is the ltrb calculation inconsistent with the paper?

Open saojianjian opened this issue 3 years ago • 3 comments

I found that the calculation of ltrb in the code was inconsistent with that in the paper, line 102 and line 104 of the model/loss.py file image1 What ltrb means in the paper is image2 I think the correct calculation code should be image3

Please let me know if there is an error in my understanding. Thank you!

saojianjian avatar Apr 06 '21 11:04 saojianjian

你可以试着按照你那样的计算方式算一下看看,b_off和t_off会变成负值

VectXmy avatar Apr 06 '21 12:04 VectXmy

你可以试着按照你那样的计算方式算一下看看,b_off和t_off会变成负值

想请教一下,你在复现代码的时候有看论文作者在他的代码里是这么实现的吗? 我看你DetectHead里的_coords2boxes是按照你GenTargets里_gen_level_targets函数的ltrb的实现方式解析回原图坐标的,逻辑上没什么问题。如果要改代码的话,得把这一处也给改了

saojianjian avatar Apr 07 '21 03:04 saojianjian

不懂你想说啥

VectXmy avatar Apr 07 '21 03:04 VectXmy