blue-oil/blueoil

Coordinates of gt_boxes are invariant after augmentation related to coordinates transformation

Open

#60 opened on Dec 5, 2018

View on GitHub
 (0 comments) (2 reactions) (0 assignees)Python (85 forks)batch import
buggood first issuehelp wanted

Repository metrics

Stars
 (250 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide