blue-oil/blueoil

Coordinates of gt_boxes are invariant after augmentation related to coordinates transformation

Open

#60 opened on 2018年12月5日

GitHub で見る
 (0 comments) (2 reactions) (0 assignees)Python (250 stars) (85 forks)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.

コントリビューターガイド