Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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