unknown commited on
Commit
36a7b11
1 Parent(s): 2237c94

add examples

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. examples/videos/3.mp4 +0 -0
app.py CHANGED
@@ -154,7 +154,7 @@ class FoleyController:
154
  if seed_textbox != "":
155
  torch.manual_seed(int(seed_textbox))
156
  generator.manual_seed(int(seed_textbox))
157
- max_frame_nums = 150
158
  frames, duration = read_frames_with_moviepy(input_video, max_frame_nums=max_frame_nums)
159
  if duration >= 10:
160
  duration = 10
@@ -278,6 +278,7 @@ with gr.Blocks(css=css) as demo:
278
  examples= [
279
  ['examples/videos/1.mp4', '', '', 1.0, 0.0, 'DDIM', 25, 7.5, 93493458],
280
  ['examples/videos/2.mp4', '', '', 1.0, 0.0, 'DDIM', 25, 7.5, 51972214],
 
281
  ],
282
  inputs=[init_img,prompt_textbox,negative_prompt_textbox,ip_adapter_scale,temporal_scale,sampler_dropdown,sample_step_slider,cfg_scale_slider,seed_textbox],
283
  )
 
154
  if seed_textbox != "":
155
  torch.manual_seed(int(seed_textbox))
156
  generator.manual_seed(int(seed_textbox))
157
+ max_frame_nums = 30
158
  frames, duration = read_frames_with_moviepy(input_video, max_frame_nums=max_frame_nums)
159
  if duration >= 10:
160
  duration = 10
 
278
  examples= [
279
  ['examples/videos/1.mp4', '', '', 1.0, 0.0, 'DDIM', 25, 7.5, 93493458],
280
  ['examples/videos/2.mp4', '', '', 1.0, 0.0, 'DDIM', 25, 7.5, 51972214],
281
+ ['examples/videos/3.mp4', '', '', 1.0, 0.0, 'DDIM', 25, 7.5, 92530687],
282
  ],
283
  inputs=[init_img,prompt_textbox,negative_prompt_textbox,ip_adapter_scale,temporal_scale,sampler_dropdown,sample_step_slider,cfg_scale_slider,seed_textbox],
284
  )
examples/videos/3.mp4 ADDED
Binary file (86.4 kB). View file