Spaces:
Runtime error
Runtime error
update mini size
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ class SamplingOptions:
|
|
| 31 |
re_init: bool = False
|
| 32 |
attn_mask: bool = False
|
| 33 |
|
| 34 |
-
def resize_image(image_array, max_width=
|
| 35 |
# 将numpy数组转换为PIL图像
|
| 36 |
if image_array.shape[-1] == 4:
|
| 37 |
mode = 'RGBA'
|
|
|
|
| 31 |
re_init: bool = False
|
| 32 |
attn_mask: bool = False
|
| 33 |
|
| 34 |
+
def resize_image(image_array, max_width=512, max_height=512):
|
| 35 |
# 将numpy数组转换为PIL图像
|
| 36 |
if image_array.shape[-1] == 4:
|
| 37 |
mode = 'RGBA'
|