Skip to content
Snippets Groups Projects
Commit 381f4917 authored by Cao Yuhang's avatar Cao Yuhang Committed by Kai Chen
Browse files

fix expand mutable operation (#1249)

parent 0d5233a3
No related branches found
No related tags found
No related merge requests found
...@@ -527,7 +527,7 @@ class Expand(object): ...@@ -527,7 +527,7 @@ class Expand(object):
left = int(random.uniform(0, w * ratio - w)) left = int(random.uniform(0, w * ratio - w))
top = int(random.uniform(0, h * ratio - h)) top = int(random.uniform(0, h * ratio - h))
expand_img[top:top + h, left:left + w] = img expand_img[top:top + h, left:left + w] = img
boxes += np.tile((left, top), 2) boxes = boxes + np.tile((left, top), 2)
results['img'] = expand_img results['img'] = expand_img
results['gt_bboxes'] = boxes results['gt_bboxes'] = boxes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment