From c58d2e8fb3f409d5450f317fddf484a4ade7f76d Mon Sep 17 00:00:00 2001 From: Colombo Date: Fri, 3 Jul 2020 18:41:42 +0400 Subject: [PATCH] fix cv2.resize interpolation --- mainscripts/Util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainscripts/Util.py b/mainscripts/Util.py index ba822ce..4a51e53 100644 --- a/mainscripts/Util.py +++ b/mainscripts/Util.py @@ -64,7 +64,7 @@ def restore_faceset_metadata_folder(input_path): img = cv2_imread (filepath) if img.shape != shape: - img = cv2.resize (img, (shape[1], shape[0]), cv2.INTER_LANCZOS4 ) + img = cv2.resize (img, (shape[1], shape[0]), interpolation=cv2.INTER_LANCZOS4 ) cv2_imwrite (str(filepath), img, [int(cv2.IMWRITE_JPEG_QUALITY), 100] )