Spaces:
Running
on
Zero
Running
on
Zero
khang119966
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -93,6 +93,7 @@ def dynamic_preprocess(image, min_num=1, max_num=12, image_size=448, use_thumbna
|
|
93 |
|
94 |
def load_image(image_file, input_size=448, max_num=12):
|
95 |
image = Image.open(image_file).convert('RGB')
|
|
|
96 |
transform = build_transform(input_size=input_size)
|
97 |
images = dynamic_preprocess(image, image_size=input_size, use_thumbnail=True, max_num=max_num)
|
98 |
pixel_values = [transform(image) for image in images]
|
|
|
93 |
|
94 |
def load_image(image_file, input_size=448, max_num=12):
|
95 |
image = Image.open(image_file).convert('RGB')
|
96 |
+
print("Image size: ", image.size)
|
97 |
transform = build_transform(input_size=input_size)
|
98 |
images = dynamic_preprocess(image, image_size=input_size, use_thumbnail=True, max_num=max_num)
|
99 |
pixel_values = [transform(image) for image in images]
|