Fabrice-TIERCELIN commited on
Commit
8665d5d
·
verified ·
1 Parent(s): 14410db

allocation_time = min(total_second_length * 60 * (2.5 if use_teacache else 3.5) * (1 + ((steps - 25) / 25)), 600)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1015,7 +1015,7 @@ def process_video_on_gpu(input_video, prompts, n_prompt, seed, batch, resolution
1015
  def process_video(input_video, prompt, n_prompt, randomize_seed, seed, auto_allocation, allocation_time, 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):
1016
  global high_vram
1017
  if auto_allocation:
1018
- allocation_time = min(total_second_length * 60 * (2.0 if use_teacache else 3.5) * (1 + ((steps - 25) / 25)), 600)
1019
 
1020
  if input_video_debug_value[0] is not None or prompt_debug_value[0] is not None or total_second_length_debug_value[0] is not None:
1021
  input_video = input_video_debug_value[0]
 
1015
  def process_video(input_video, prompt, n_prompt, randomize_seed, seed, auto_allocation, allocation_time, 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):
1016
  global high_vram
1017
  if auto_allocation:
1018
+ allocation_time = min(total_second_length * 60 * (2.5 if use_teacache else 3.5) * (1 + ((steps - 25) / 25)), 600)
1019
 
1020
  if input_video_debug_value[0] is not None or prompt_debug_value[0] is not None or total_second_length_debug_value[0] is not None:
1021
  input_video = input_video_debug_value[0]