ford442 commited on
Commit
f17c1bf
1 Parent(s): d956227

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -234,7 +234,7 @@ def generate_video_from_text(
234
  frame_rate=25,
235
  seed=random.randint(0, MAX_SEED),
236
  num_inference_steps=30,
237
- guidance_scale=3,
238
  height=512,
239
  width=768,
240
  num_frames=121,
@@ -311,13 +311,13 @@ def generate_video_from_image(
311
  enhance_prompt_toggle=False,
312
  img2vid_analytics_toggle=True,
313
  negative_prompt="",
314
- frame_rate=25,
315
  seed=random.randint(0, MAX_SEED),
316
- num_inference_steps=30,
317
- guidance_scale=3,
318
- height=512,
319
  width=768,
320
- num_frames=121,
321
  progress=gr.Progress(),
322
  ):
323
 
@@ -400,15 +400,15 @@ def generate_video_from_image(
400
  def create_advanced_options():
401
  with gr.Accordion("Step 4: Advanced Options (Optional)", open=False):
402
  seed = gr.Slider(label="4.1 Seed", minimum=0, maximum=1000000, step=1, value=646373)
403
- inference_steps = gr.Slider(label="4.2 Inference Steps", minimum=1, maximum=50, step=1, value=30)
404
- guidance_scale = gr.Slider(label="4.3 Guidance Scale", minimum=1.0, maximum=5.0, step=0.1, value=3.0)
405
 
406
  height_slider = gr.Slider(
407
  label="4.4 Height",
408
  minimum=256,
409
  maximum=1024,
410
  step=64,
411
- value=512,
412
  visible=False,
413
  )
414
  width_slider = gr.Slider(
@@ -424,7 +424,7 @@ def create_advanced_options():
424
  minimum=1,
425
  maximum=200,
426
  step=1,
427
- value=121,
428
  visible=False,
429
  )
430
 
@@ -534,10 +534,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
534
 
535
  txt2vid_frame_rate = gr.Slider(
536
  label="Step 3.2: Frame Rate",
537
- minimum=21,
538
  maximum=30,
539
  step=1,
540
- value=25,
541
  )
542
 
543
  txt2vid_advanced = create_advanced_options()
@@ -613,10 +613,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
613
 
614
  img2vid_frame_rate = gr.Slider(
615
  label="Step 3.2: Frame Rate",
616
- minimum=21,
617
  maximum=30,
618
  step=1,
619
- value=25,
620
  )
621
 
622
  img2vid_advanced = create_advanced_options()
 
234
  frame_rate=25,
235
  seed=random.randint(0, MAX_SEED),
236
  num_inference_steps=30,
237
+ guidance_scale=4.2,
238
  height=512,
239
  width=768,
240
  num_frames=121,
 
311
  enhance_prompt_toggle=False,
312
  img2vid_analytics_toggle=True,
313
  negative_prompt="",
314
+ frame_rate=20,
315
  seed=random.randint(0, MAX_SEED),
316
+ num_inference_steps=35,
317
+ guidance_scale=4.2,
318
+ height=768,
319
  width=768,
320
+ num_frames=60,
321
  progress=gr.Progress(),
322
  ):
323
 
 
400
  def create_advanced_options():
401
  with gr.Accordion("Step 4: Advanced Options (Optional)", open=False):
402
  seed = gr.Slider(label="4.1 Seed", minimum=0, maximum=1000000, step=1, value=646373)
403
+ inference_steps = gr.Slider(label="4.2 Inference Steps", minimum=1, maximum=50, step=1, value=35)
404
+ guidance_scale = gr.Slider(label="4.3 Guidance Scale", minimum=1.0, maximum=5.0, step=0.1, value=4.2)
405
 
406
  height_slider = gr.Slider(
407
  label="4.4 Height",
408
  minimum=256,
409
  maximum=1024,
410
  step=64,
411
+ value=768,
412
  visible=False,
413
  )
414
  width_slider = gr.Slider(
 
424
  minimum=1,
425
  maximum=200,
426
  step=1,
427
+ value=60,
428
  visible=False,
429
  )
430
 
 
534
 
535
  txt2vid_frame_rate = gr.Slider(
536
  label="Step 3.2: Frame Rate",
537
+ minimum=12,
538
  maximum=30,
539
  step=1,
540
+ value=20,
541
  )
542
 
543
  txt2vid_advanced = create_advanced_options()
 
613
 
614
  img2vid_frame_rate = gr.Slider(
615
  label="Step 3.2: Frame Rate",
616
+ minimum=12,
617
  maximum=30,
618
  step=1,
619
+ value=20,
620
  )
621
 
622
  img2vid_advanced = create_advanced_options()