feat: image resize
Browse files
facial_keypoint_detection.py
CHANGED
@@ -82,6 +82,7 @@ def load_image_file(file, mode='RGB'):
|
|
82 |
img = exif_transpose(img)
|
83 |
|
84 |
img = img.convert(mode)
|
|
|
85 |
|
86 |
return img
|
87 |
|
|
|
82 |
img = exif_transpose(img)
|
83 |
|
84 |
img = img.convert(mode)
|
85 |
+
img.thumbnail((1000, 1000), PIL.Image.Resampling.LANCZOS)
|
86 |
|
87 |
return img
|
88 |
|