valhalla commited on
Commit
97bd822
1 Parent(s): c1b5cda

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -71,7 +71,7 @@ def resize_to_closest_aspect_ratio(image):
71
  new_width, new_height = SD_XL_BASE_RATIOS[closest_ratio]
72
 
73
  # Resize the image to the new dimensions while preserving the aspect ratio
74
- resized_image = image.resize((new_width, new_height), Image.ANTIALIAS)
75
 
76
  return resized_image
77
 
 
71
  new_width, new_height = SD_XL_BASE_RATIOS[closest_ratio]
72
 
73
  # Resize the image to the new dimensions while preserving the aspect ratio
74
+ resized_image = image.resize((new_width, new_height), PIL.Image.ANTIALIAS)
75
 
76
  return resized_image
77