Fabrice-TIERCELIN commited on
Commit
7fa1247
·
verified ·
1 Parent(s): 3818592

Accordion

Browse files
Files changed (1) hide show
  1. app_v2v.py +5 -5
app_v2v.py CHANGED
@@ -555,8 +555,8 @@ def worker_video(input_video, prompt, n_prompt, seed, batch, resolution, total_s
555
  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, use_teacache, no_resize, mp4_crf, num_clean_frames, vae_batch):
556
  global total_second_length_debug_value
557
  if total_second_length_debug_value is not None:
558
- return min(total_second_length_debug_value * 60 * 2, 600)
559
- return total_second_length * 60 * 2
560
 
561
  # 20250506 pftq: Modified process to pass clean frame count, etc from video_encode
562
  @spaces.GPU(duration=get_duration_video)
@@ -656,7 +656,7 @@ adapted from the officical code repo [FramePack](https://github.com/lllyasviel/F
656
 
657
  with gr.Accordion("Advanced settings", open=False):
658
  with gr.Row():
659
- use_teacache = gr.Checkbox(label='Use TeaCache', value=False, info='Faster speed, but often makes hands and fingers slightly worse.')
660
  no_resize = gr.Checkbox(label='Force Original Video Resolution (No Resizing)', value=False, info='Might run out of VRAM (720p requires > 24GB VRAM).')
661
 
662
  randomize_seed = gr.Checkbox(label='Randomize seed', value=True, info='If checked, the seed is always different')
@@ -693,7 +693,7 @@ adapted from the officical code repo [FramePack](https://github.com/lllyasviel/F
693
 
694
  mp4_crf = gr.Slider(label="MP4 Compression", minimum=0, maximum=100, value=16, step=1, info="Lower means better quality. 0 is uncompressed. Change to 16 if you get black outputs. ")
695
 
696
- with gr.Row():
697
  input_video_debug = gr.Video(sources='upload', label="Input Video Debug", height=320)
698
  prompt_debug = gr.Textbox(label="Prompt Debug", value='')
699
  total_second_length_debug = gr.Slider(label="Additional Video Length to Generate (Seconds) Debug", minimum=1, maximum=120, value=1, step=0.1)
@@ -722,7 +722,7 @@ adapted from the officical code repo [FramePack](https://github.com/lllyasviel/F
722
  10.0, # gs
723
  0.0, # rs
724
  6, # gpu_memory_preservation
725
- False, # use_teacache
726
  False, # no_resize
727
  16, # mp4_crf
728
  5, # num_clean_frames
 
555
  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, use_teacache, no_resize, mp4_crf, num_clean_frames, vae_batch):
556
  global total_second_length_debug_value
557
  if total_second_length_debug_value is not None:
558
+ return min(total_second_length_debug_value * 60 * 10, 600)
559
+ return total_second_length * 60 * 10
560
 
561
  # 20250506 pftq: Modified process to pass clean frame count, etc from video_encode
562
  @spaces.GPU(duration=get_duration_video)
 
656
 
657
  with gr.Accordion("Advanced settings", open=False):
658
  with gr.Row():
659
+ use_teacache = gr.Checkbox(label='Use TeaCache', value=True, info='Faster speed, but often makes hands and fingers slightly worse.')
660
  no_resize = gr.Checkbox(label='Force Original Video Resolution (No Resizing)', value=False, info='Might run out of VRAM (720p requires > 24GB VRAM).')
661
 
662
  randomize_seed = gr.Checkbox(label='Randomize seed', value=True, info='If checked, the seed is always different')
 
693
 
694
  mp4_crf = gr.Slider(label="MP4 Compression", minimum=0, maximum=100, value=16, step=1, info="Lower means better quality. 0 is uncompressed. Change to 16 if you get black outputs. ")
695
 
696
+ with gr.Accordion("Debug", open=False):
697
  input_video_debug = gr.Video(sources='upload', label="Input Video Debug", height=320)
698
  prompt_debug = gr.Textbox(label="Prompt Debug", value='')
699
  total_second_length_debug = gr.Slider(label="Additional Video Length to Generate (Seconds) Debug", minimum=1, maximum=120, value=1, step=0.1)
 
722
  10.0, # gs
723
  0.0, # rs
724
  6, # gpu_memory_preservation
725
+ True, # use_teacache
726
  False, # no_resize
727
  16, # mp4_crf
728
  5, # num_clean_frames