multimodalart HF Staff commited on
Commit
d9f8e44
·
verified ·
1 Parent(s): 38389da

Duration slider from 2s

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ FPS, FRAMES_PER_CHUNK, LATENTS_PER_CHUNK = 24, 17, 5
78
  # 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,
79
  # which rounds up to 362, i.e. 15.083 s, and is refused. 14 is the last whole second that survives the snap.
80
  MAX_UI_DURATION = 14
81
- MIN_DURATION = 5
82
  # A reference video shorter than 2 s gives the model almost no motion to read, and 15 s is the checkpoint's ceiling.
83
  MIN_REFERENCE_VIDEO, MAX_REFERENCE_VIDEO = 2.0, 15.0
84
  # `MINIMAX_H3_MAX_REFERENCE_IMAGES`, hardcoded so the UI renders before `diffusers` is importable. The slots are all
 
78
  # 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,
79
  # which rounds up to 362, i.e. 15.083 s, and is refused. 14 is the last whole second that survives the snap.
80
  MAX_UI_DURATION = 14
81
+ MIN_DURATION = 2
82
  # A reference video shorter than 2 s gives the model almost no motion to read, and 15 s is the checkpoint's ceiling.
83
  MIN_REFERENCE_VIDEO, MAX_REFERENCE_VIDEO = 2.0, 15.0
84
  # `MINIMAX_H3_MAX_REFERENCE_IMAGES`, hardcoded so the UI renders before `diffusers` is importable. The slots are all