fix cv2.resize interpolation

This commit is contained in:
Colombo 2020-07-03 18:41:42 +04:00
parent 770da74a9b
commit c58d2e8fb3

View file

@ -64,7 +64,7 @@ def restore_faceset_metadata_folder(input_path):
img = cv2_imread (filepath) img = cv2_imread (filepath)
if img.shape != shape: 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] ) cv2_imwrite (str(filepath), img, [int(cv2.IMWRITE_JPEG_QUALITY), 100] )