Skip to content

Commit

Permalink
fix operators typo (#3735)
Browse files Browse the repository at this point in the history
  • Loading branch information
nemonameless authored Jul 21, 2021
1 parent c179a40 commit 090aa07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ppdet/data/transform/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import numpy as np
import os
import copy

import logging
import cv2
from PIL import Image, ImageDraw

Expand Down Expand Up @@ -194,7 +194,7 @@ def __init__(self, prob=0.5, lower=0.02, higher=0.4, aspect_ratio=0.3):
Args:
prob (float): probability to carry out random erasing
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
"""
super(RandomErasingImage, self).__init__()
Expand Down Expand Up @@ -646,7 +646,7 @@ def _resize_rle(rle, im_h, im_w, im_scale_x, im_scale_y):

mask = mask_util.decode(rle)
mask = cv2.resize(
image,
mask,
None,
None,
fx=im_scale_x,
Expand Down

0 comments on commit 090aa07

Please sign in to comment.