Spaces:
Runtime error
Runtime error
LeoXing1996
commited on
Commit
·
0ee6af2
1
Parent(s):
73e3005
update app
Browse files- app-huggingface.py +2 -1
app-huggingface.py
CHANGED
|
@@ -267,6 +267,7 @@ class AnimateController:
|
|
| 267 |
seed_textbox,
|
| 268 |
ip_adapter_scale,
|
| 269 |
style,
|
|
|
|
| 270 |
progress=gr.Progress(),
|
| 271 |
):
|
| 272 |
|
|
@@ -287,7 +288,7 @@ class AnimateController:
|
|
| 287 |
print(f'Seed: {seed}')
|
| 288 |
|
| 289 |
pipeline = self.pipeline_dict[style]
|
| 290 |
-
init_img, h, w = preprocess_img(init_img)
|
| 291 |
print(f'img size: {h, w}')
|
| 292 |
|
| 293 |
sample = pipeline(
|
|
|
|
| 267 |
seed_textbox,
|
| 268 |
ip_adapter_scale,
|
| 269 |
style,
|
| 270 |
+
max_size=512,
|
| 271 |
progress=gr.Progress(),
|
| 272 |
):
|
| 273 |
|
|
|
|
| 288 |
print(f'Seed: {seed}')
|
| 289 |
|
| 290 |
pipeline = self.pipeline_dict[style]
|
| 291 |
+
init_img, h, w = preprocess_img(init_img, max_size)
|
| 292 |
print(f'img size: {h, w}')
|
| 293 |
|
| 294 |
sample = pipeline(
|