提交 703d379c 编写于 作者: Y Yang Zhang 提交者: qingqing01

Remove leftover reference to `scale_box` (#31)

上级 f17b971d
......@@ -1032,7 +1032,6 @@ class Resize(BaseOperator):
scale_x = dim / w
scale_y = dim / h
if 'gt_bbox' in sample and len(sample['gt_bbox']) > 0:
if self.scale_box or self.scale_box is None:
scale_array = np.array([scale_x, scale_y] * 2,
dtype=np.float32)
sample['gt_bbox'] = np.clip(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册