From 11e4d27e66458697a965c0332fd993e70791cd8b Mon Sep 17 00:00:00 2001 From: George Ni Date: Wed, 21 Jul 2021 10:12:01 +0800 Subject: [PATCH] fix operators typo (#3732) --- ppdet/data/transform/operators.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ppdet/data/transform/operators.py b/ppdet/data/transform/operators.py index f59adbd1d..65ec316f4 100644 --- a/ppdet/data/transform/operators.py +++ b/ppdet/data/transform/operators.py @@ -33,7 +33,7 @@ import math import numpy as np import os import copy - +import logging import cv2 from PIL import Image, ImageDraw @@ -194,7 +194,7 @@ class RandomErasingImage(BaseOperator): 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__() @@ -646,7 +646,7 @@ class Resize(BaseOperator): mask = mask_util.decode(rle) mask = cv2.resize( - image, + mask, None, None, fx=im_scale_x, -- GitLab