Spaces:
Running on Zero
Running on Zero
Full 16:9 as the default canvas; match the conditioner's renamed fast label
Browse files47 unmodified lines484950515253547 unmodified lines6263646566676847 unmodified lines# Must stay identical to the conditioner's table: this Space forwards the *label* to the conditioner, so a canvas# that half does not know is rejected there and surfaces as a failure here.CANVASES = {"960x544 路 16:9 fast (default)": (544, 960),"1024x576 路 16:9 fast": (576, 1024),"1152x640 路 16:9": (640, 1152),"1280x704 路 16:9": (704, 1280),7 unmodified lines"768x1024 路 3:4 full": (1024, 768),"1536x672 路 21:9 full": (672, 1536),}DEFAULT_CANVAS = "960x544 路 16:9 fast (default)"FPS, FRAMES_PER_CHUNK, LATENTS_PER_CHUNK = 24, 17, 5# 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,# which rounds up to 362, i.e. 15.083 s, and is refused. 14 is the last whole second that survives the snap.47 unmodified lines484950515253547 unmodified lines62636465666768697047 unmodified lines# Must stay identical to the conditioner's table: this Space forwards the *label* to the conditioner, so a canvas# that half does not know is rejected there and surfaces as a failure here.CANVASES = {"960x544 路 16:9 fast": (544, 960),"1024x576 路 16:9 fast": (576, 1024),"1152x640 路 16:9": (640, 1152),"1280x704 路 16:9": (704, 1280),7 unmodified lines"768x1024 路 3:4 full": (1024, 768),"1536x672 路 21:9 full": (672, 1536),}# The full 16:9 canvas, not the fast one. `gr.Examples` are cached lazily and generated once, so what an example# is worth is its quality rather than its latency; the fast canvases stay in the dropdown for interactive use.DEFAULT_CANVAS = "1344x768 路 16:9 full"FPS, FRAMES_PER_CHUNK, LATENTS_PER_CHUNK = 24, 17, 5# 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,# which rounds up to 362, i.e. 15.083 s, and is refused. 14 is the last whole second that survives the snap.
app.py+4-2