Fabrice-TIERCELIN commited on
Commit
c4e0e06
·
verified ·
1 Parent(s): 55ba894

, progress = None

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1013,7 +1013,7 @@ def worker_video(input_video, prompts, n_prompt, seed, batch, resolution, total_
1013
  stream.output_queue.push(('end', None))
1014
  return
1015
 
1016
- def get_duration(input_image, image_position, prompt, generation_mode, n_prompt, randomize_seed, seed, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, enable_preview, use_teacache, mp4_crf):
1017
  return total_second_length * 60 * (0.9 if use_teacache else 1.5) * (1 + ((steps - 25) / 100))
1018
 
1019
  @spaces.GPU(duration=get_duration)
@@ -1090,7 +1090,7 @@ def process(input_image,
1090
  "You can upscale the result with RIFE. To make all your generated scenes consistent, you can then apply a face swap on the main character.", gr.update(interactive=True), gr.update(interactive=False)
1091
  break
1092
 
1093
- def get_duration_video(input_video, prompt, n_prompt, randomize_seed, seed, batch, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, enable_preview, use_teacache, no_resize, mp4_crf, num_clean_frames, vae_batch):
1094
  return total_second_length * 60 * (0.9 if use_teacache else 2.3) * (1 + ((steps - 25) / 100))
1095
 
1096
  # 20250506 pftq: Modified process to pass clean frame count, etc from video_encode
 
1013
  stream.output_queue.push(('end', None))
1014
  return
1015
 
1016
+ def get_duration(input_image, image_position, prompt, generation_mode, n_prompt, randomize_seed, seed, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, enable_preview, use_teacache, mp4_crf, progress = None):
1017
  return total_second_length * 60 * (0.9 if use_teacache else 1.5) * (1 + ((steps - 25) / 100))
1018
 
1019
  @spaces.GPU(duration=get_duration)
 
1090
  "You can upscale the result with RIFE. To make all your generated scenes consistent, you can then apply a face swap on the main character.", gr.update(interactive=True), gr.update(interactive=False)
1091
  break
1092
 
1093
+ def get_duration_video(input_video, prompt, n_prompt, randomize_seed, seed, batch, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, enable_preview, use_teacache, no_resize, mp4_crf, num_clean_frames, vae_batch, progress = None):
1094
  return total_second_length * 60 * (0.9 if use_teacache else 2.3) * (1 + ((steps - 25) / 100))
1095
 
1096
  # 20250506 pftq: Modified process to pass clean frame count, etc from video_encode