Mirror the conditioner's canonical table, grouped by ratio
Browse files
app.py
CHANGED
|
@@ -48,21 +48,26 @@ MAX_GPU_DURATION = int(os.environ.get("H3_GPU_DURATION_MAX", "1500"))
|
|
| 48 |
# Must stay identical to the conditioner's table: this Space forwards the *label* to the conditioner, so a canvas
|
| 49 |
# that half does not know is rejected there and surfaces as a failure here.
|
| 50 |
CANVASES = {
|
|
|
|
| 51 |
"960x544 · 16:9 fast": (544, 960),
|
| 52 |
"1024x576 · 16:9 fast": (576, 1024),
|
| 53 |
"1152x640 · 16:9": (640, 1152),
|
| 54 |
"1280x704 · 16:9": (704, 1280),
|
| 55 |
"1344x768 · 16:9 full": (768, 1344),
|
|
|
|
| 56 |
"544x960 · 9:16 fast": (960, 544),
|
| 57 |
"640x1152 · 9:16": (1152, 640),
|
| 58 |
"768x1344 · 9:16 full": (1344, 768),
|
|
|
|
| 59 |
"544x544 · 1:1 fast": (544, 544),
|
| 60 |
"768x768 · 1:1 full": (768, 768),
|
|
|
|
| 61 |
"768x576 · 4:3 fast": (576, 768),
|
| 62 |
-
"576x768 · 3:4 fast": (768, 576),
|
| 63 |
-
"1152x512 · 21:9 fast": (512, 1152),
|
| 64 |
"1024x768 · 4:3 full": (768, 1024),
|
|
|
|
| 65 |
"768x1024 · 3:4 full": (1024, 768),
|
|
|
|
|
|
|
| 66 |
"1536x672 · 21:9 full": (672, 1536),
|
| 67 |
}
|
| 68 |
DEFAULT_CANVAS = "960x544 · 16:9 fast"
|
|
|
|
| 48 |
# Must stay identical to the conditioner's table: this Space forwards the *label* to the conditioner, so a canvas
|
| 49 |
# that half does not know is rejected there and surfaces as a failure here.
|
| 50 |
CANVASES = {
|
| 51 |
+
# 16:9
|
| 52 |
"960x544 · 16:9 fast": (544, 960),
|
| 53 |
"1024x576 · 16:9 fast": (576, 1024),
|
| 54 |
"1152x640 · 16:9": (640, 1152),
|
| 55 |
"1280x704 · 16:9": (704, 1280),
|
| 56 |
"1344x768 · 16:9 full": (768, 1344),
|
| 57 |
+
# 9:16
|
| 58 |
"544x960 · 9:16 fast": (960, 544),
|
| 59 |
"640x1152 · 9:16": (1152, 640),
|
| 60 |
"768x1344 · 9:16 full": (1344, 768),
|
| 61 |
+
# 1:1
|
| 62 |
"544x544 · 1:1 fast": (544, 544),
|
| 63 |
"768x768 · 1:1 full": (768, 768),
|
| 64 |
+
# 4:3 / 3:4
|
| 65 |
"768x576 · 4:3 fast": (576, 768),
|
|
|
|
|
|
|
| 66 |
"1024x768 · 4:3 full": (768, 1024),
|
| 67 |
+
"576x768 · 3:4 fast": (768, 576),
|
| 68 |
"768x1024 · 3:4 full": (1024, 768),
|
| 69 |
+
# 21:9
|
| 70 |
+
"1152x512 · 21:9 fast": (512, 1152),
|
| 71 |
"1536x672 · 21:9 full": (672, 1536),
|
| 72 |
}
|
| 73 |
DEFAULT_CANVAS = "960x544 · 16:9 fast"
|