From 58036299375914cea1ffe87a73d9f5325968d96f Mon Sep 17 00:00:00 2001 From: jiahongyu Date: Wed, 5 Jul 2023 07:49:07 +0000 Subject: [PATCH] Fix Image.ANTIALIAS bug --- test/cpp/inference/api/full_pascalvoc_test_preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cpp/inference/api/full_pascalvoc_test_preprocess.py b/test/cpp/inference/api/full_pascalvoc_test_preprocess.py index afe9eedc9e2..2fafd9b095b 100644 --- a/test/cpp/inference/api/full_pascalvoc_test_preprocess.py +++ b/test/cpp/inference/api/full_pascalvoc_test_preprocess.py @@ -47,7 +47,7 @@ BIN_FULLSIZE = 5348678856 def preprocess(img): img_width, img_height = img.size - img = img.resize((RESIZE_W, RESIZE_H), Image.ANTIALIAS) + img = img.resize((RESIZE_W, RESIZE_H), Image.LANCZOS) img = np.array(img) # HWC to CHW if len(img.shape) == 3: -- GitLab