vkashko commited on
Commit
9bce7a0
·
1 Parent(s): c79462a

feat: image resize

Browse files
Files changed (1) hide show
  1. facial_keypoint_detection.py +1 -0
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