未验证 提交 ad0a436a 编写于 作者: G Guanghua Yu 提交者: GitHub

fix AugmentHSV output type (#5800)

上级 96959b21
...@@ -2202,7 +2202,7 @@ class AugmentHSV(BaseOperator): ...@@ -2202,7 +2202,7 @@ class AugmentHSV(BaseOperator):
else: else:
cv2.cvtColor(img_hsv, cv2.COLOR_HSV2RGB, dst=img) cv2.cvtColor(img_hsv, cv2.COLOR_HSV2RGB, dst=img)
sample['image'] = img sample['image'] = img.astype(np.float32)
return sample return sample
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册