Spaces:
Sleeping
Sleeping
bo.l
commited on
Commit
·
05dab33
1
Parent(s):
9fe2d1c
max area 1568 fix
Browse files
app.py
CHANGED
|
@@ -87,11 +87,6 @@ def infer(
|
|
| 87 |
if len(refs) == 0:
|
| 88 |
raise gr.Error("请至少上传一张参考图(ref1 或 ref2)。")
|
| 89 |
|
| 90 |
-
|
| 91 |
-
# 规范宽高:不超过 MAX_IMAGE_SIZE 且对齐到 16
|
| 92 |
-
width = max(16, min(width, max_area)) // 16 * 16
|
| 93 |
-
height = max(16, min(height, max_area)) // 16 * 16
|
| 94 |
-
|
| 95 |
# 随机种子
|
| 96 |
if randomize_seed:
|
| 97 |
seed = random.randint(0, MAX_SEED)
|
|
|
|
| 87 |
if len(refs) == 0:
|
| 88 |
raise gr.Error("请至少上传一张参考图(ref1 或 ref2)。")
|
| 89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
# 随机种子
|
| 91 |
if randomize_seed:
|
| 92 |
seed = random.randint(0, MAX_SEED)
|