multimodalart HF Staff commited on
Commit
6237c6a
·
verified ·
1 Parent(s): 44f6712

Full 16:9 as the default canvas; match the conditioner's renamed fast label

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -48,7 +48,7 @@ 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 (default)": (544, 960),
52
  "1024x576 · 16:9 fast": (576, 1024),
53
  "1152x640 · 16:9": (640, 1152),
54
  "1280x704 · 16:9": (704, 1280),
@@ -62,7 +62,9 @@ CANVASES = {
62
  "768x1024 · 3:4 full": (1024, 768),
63
  "1536x672 · 21:9 full": (672, 1536),
64
  }
65
- DEFAULT_CANVAS = "960x544 · 16:9 fast (default)"
 
 
66
  FPS, FRAMES_PER_CHUNK, LATENTS_PER_CHUNK = 24, 17, 5
67
  # 15 s is the checkpoint's ceiling, but it is the *snapped* frame count that has to hold for it: 15 s is 360 frames,
68
  # which rounds up to 362, i.e. 15.083 s, and is refused. 14 is the last whole second that survives the snap.
 
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),
 
62
  "768x1024 · 3:4 full": (1024, 768),
63
  "1536x672 · 21:9 full": (672, 1536),
64
  }
65
+ # The full 16:9 canvas, not the fast one. `gr.Examples` are cached lazily and generated once, so what an example
66
+ # is worth is its quality rather than its latency; the fast canvases stay in the dropdown for interactive use.
67
+ DEFAULT_CANVAS = "1344x768 · 16:9 full"
68
  FPS, FRAMES_PER_CHUNK, LATENTS_PER_CHUNK = 24, 17, 5
69
  # 15 s is the checkpoint's ceiling, but it is the *snapped* frame count that has to hold for it: 15 s is 360 frames,
70
  # which rounds up to 362, i.e. 15.083 s, and is refused. 14 is the last whole second that survives the snap.