未验证 提交 090aa07d 编写于 作者: G George Ni 提交者: GitHub

fix operators typo (#3735)

上级 c179a40d
...@@ -33,7 +33,7 @@ import math ...@@ -33,7 +33,7 @@ import math
import numpy as np import numpy as np
import os import os
import copy import copy
import logging
import cv2 import cv2
from PIL import Image, ImageDraw from PIL import Image, ImageDraw
...@@ -194,7 +194,7 @@ class RandomErasingImage(BaseOperator): ...@@ -194,7 +194,7 @@ class RandomErasingImage(BaseOperator):
Args: Args:
prob (float): probability to carry out random erasing prob (float): probability to carry out random erasing
lower (float): lower limit of the erasing area ratio lower (float): lower limit of the erasing area ratio
heigher (float): upper limit of the erasing area ratio higher (float): upper limit of the erasing area ratio
aspect_ratio (float): aspect ratio of the erasing region aspect_ratio (float): aspect ratio of the erasing region
""" """
super(RandomErasingImage, self).__init__() super(RandomErasingImage, self).__init__()
...@@ -646,7 +646,7 @@ class Resize(BaseOperator): ...@@ -646,7 +646,7 @@ class Resize(BaseOperator):
mask = mask_util.decode(rle) mask = mask_util.decode(rle)
mask = cv2.resize( mask = cv2.resize(
image, mask,
None, None,
None, None,
fx=im_scale_x, fx=im_scale_x,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册