blue-oil/blueoil

Coordinates of gt_boxes are invariant after augmentation related to coordinates transformation

Open

#60 建立於 2018年12月5日

在 GitHub 查看
 (0 留言) (2 反應) (0 負責人)Python (250 star) (85 fork)batch import
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.

貢獻者指南