pytorch_yolov1
pytorch_yolov1 copied to clipboard
encoder
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??
why real local_x should be 2?
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)
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)
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 !
thanks