Fabrice-TIERCELIN commited on
Commit
14e3ba4
·
verified ·
1 Parent(s): 5e382d8

return total_second_length * 60 * (1.5 if use_teacache else 2.5) * (1 + ((steps - 25) / 100))

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -895,7 +895,7 @@ def get_duration_video(input_video, prompt, n_prompt, randomize_seed, seed, batc
895
  global total_second_length_debug_value
896
  if total_second_length_debug_value is not None:
897
  return min(total_second_length_debug_value * 60 * 10, 600)
898
- return total_second_length * 60 * (1.0 if use_teacache else 2.3) * (1 + ((steps - 25) / 100))
899
 
900
  # 20250506 pftq: Modified process to pass clean frame count, etc from video_encode
901
  @spaces.GPU(duration=get_duration_video)
 
895
  global total_second_length_debug_value
896
  if total_second_length_debug_value is not None:
897
  return min(total_second_length_debug_value * 60 * 10, 600)
898
+ return total_second_length * 60 * (1.5 if use_teacache else 2.5) * (1 + ((steps - 25) / 100))
899
 
900
  # 20250506 pftq: Modified process to pass clean frame count, etc from video_encode
901
  @spaces.GPU(duration=get_duration_video)