blue-oil/blueoil
在 GitHub 查看Coordinates of gt_boxes are invariant after augmentation related to coordinates transformation
Open
#60 建立於 2018年12月5日
buggood first issuehelp wanted
描述
Coordinates of gt_boxes are invariant after augmentation related to coordinates transformation, "Pad", "Rotate" and "Crop". Here is the examples on "Pad". The coordinates of gt_boxes and shifted images are not match:
On "Pad", I fixed it by adding the code to __call__method like this:
gt_boxes[:,0] = gt_boxes[:,0]+self.left
gt_boxes[:,1] = gt_boxes[:,1]+self.top
and modifiiied the argument and the return value accordingly.
Then, it works well.
Likewise, I think "Rotate" and "Crop" should be modified accordingly.