okaris commited on
Commit
aea139c
1 Parent(s): abe10b5
Files changed (1) hide show
  1. utils.py +5 -1
utils.py CHANGED
@@ -68,9 +68,13 @@ def load_and_resize_image(image_path, max_width, max_height, maintain_aspect_rat
68
  """
69
 
70
  # Open the image
 
71
  if isinstance(image_path, np.ndarray):
72
  image = Image.fromarray(image_path)
73
-
 
 
 
74
  image = load_image(image_path)
75
 
76
  # Get the current width and height of the image
 
68
  """
69
 
70
  # Open the image
71
+ print(type(image_path))
72
  if isinstance(image_path, np.ndarray):
73
  image = Image.fromarray(image_path)
74
+ else:
75
+ #Print the type of image_path
76
+ print(type(image_path))
77
+
78
  image = load_image(image_path)
79
 
80
  # Get the current width and height of the image