未验证 提交 03326eea 编写于 作者: W wangguanzhong 提交者: GitHub

update poly resize (#2929)

上级 75d29d16
......@@ -634,7 +634,7 @@ class Resize(BaseOperator):
def apply_segm(self, segms, im_size, scale):
def _resize_poly(poly, im_scale_x, im_scale_y):
resized_poly = np.array(poly)
resized_poly = np.array(poly).astype('float32')
resized_poly[0::2] *= im_scale_x
resized_poly[1::2] *= im_scale_y
return resized_poly.tolist()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册