From dd8339a0c1756f475c7c1c8be935af6e5076a5db Mon Sep 17 00:00:00 2001 From: qingqing01 Date: Tue, 22 Sep 2020 16:50:28 +0800 Subject: [PATCH] Fix DebugVisibleImage in ppdet/data/transform/operators.py (#1472) --- ppdet/data/transform/operators.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ppdet/data/transform/operators.py b/ppdet/data/transform/operators.py index b49111933..f0eca28c3 100644 --- a/ppdet/data/transform/operators.py +++ b/ppdet/data/transform/operators.py @@ -2551,9 +2551,7 @@ class DebugVisibleImage(BaseOperator): x1 = round(keypoint[2 * j]).astype(np.int32) y1 = round(keypoint[2 * j + 1]).astype(np.int32) draw.ellipse( - (x1, y1, x1 + 5, y1i + 5), - fill='green', - outline='green') + (x1, y1, x1 + 5, y1 + 5), fill='green', outline='green') save_path = os.path.join(self.output_dir, out_file_name) image.save(save_path, quality=95) return sample -- GitLab