pytorch_yolov1 icon indicating copy to clipboard operation
pytorch_yolov1 copied to clipboard

encoder

Open shitouren1994 opened this issue 4 years ago • 4 comments

local_x = min(int(round((gt[2] + gt[0]) / 2)),w-1) local_y = min(int(round((gt[3] + gt[1]) / 2)),h-1) is this localtion error? gt = [2.1,3,3.3,1,4] ceil=(7,7) get local_x = 3 but the real local_x is 2??

shitouren1994 avatar Jul 16 '20 05:07 shitouren1994

why real local_x should be 2?

Tshzzz avatar Jul 16 '20 06:07 Tshzzz

thank you maybe i was misunderstand i think the center is 2.7,3.5 so this object goal is in the right bottom of box(2,3) and offset is (0.7,0.5) image

shitouren1994 avatar Jul 16 '20 06:07 shitouren1994

thank you maybe i was misunderstand i think the center is 2.7,3.5 so this object goal is in the right bottom of box(2,3) and offset is (0.7,0.5) image

I think you are right. and you can change the code into

local_x = min(int((gt[2] + gt[0]) / 2),w-1) local_y = min(int((gt[3] + gt[1]) / 2),h-1)

thank you for your reminder !

Tshzzz avatar Jul 16 '20 07:07 Tshzzz

thanks

shitouren1994 avatar Jul 16 '20 07:07 shitouren1994