magnef commited on
Commit
10aa7d9
·
verified ·
1 Parent(s): ad64a20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -38,9 +38,9 @@ MAX_SEED = np.iinfo(np.int32).max
38
 
39
  FIXED_FPS = 24
40
  MIN_FRAMES_MODEL = 60
41
- MAX_FRAMES_MODEL = 600
42
 
43
- default_prompt_i2v = "make this image come alive, cinematic motion, smooth animation"
44
  default_negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards, watermark, text, signature"
45
 
46
 
@@ -170,7 +170,7 @@ with gr.Blocks() as demo:
170
  with gr.Column():
171
  input_image_component = gr.Image(type="pil", label="Input Image (auto-resized to target H/W)")
172
  prompt_input = gr.Textbox(label="Prompt", value=default_prompt_i2v)
173
- duration_seconds_input = gr.Slider(minimum=round(MIN_FRAMES_MODEL/FIXED_FPS,1), maximum=round(MAX_FRAMES_MODEL/FIXED_FPS,1), step=0.1, value=2, label="Duration (seconds)", info=f"Clamped to model's {MIN_FRAMES_MODEL}-{MAX_FRAMES_MODEL} frames at {FIXED_FPS}fps.")
174
 
175
  with gr.Accordion("Advanced Settings", open=False):
176
  negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)
 
38
 
39
  FIXED_FPS = 24
40
  MIN_FRAMES_MODEL = 60
41
+ MAX_FRAMES_MODEL = 120
42
 
43
+ default_prompt_i2v = "make this image come alive, cinematic motion, smooth animation. "
44
  default_negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards, watermark, text, signature"
45
 
46
 
 
170
  with gr.Column():
171
  input_image_component = gr.Image(type="pil", label="Input Image (auto-resized to target H/W)")
172
  prompt_input = gr.Textbox(label="Prompt", value=default_prompt_i2v)
173
+ duration_seconds_input = gr.Slider(minimum=round(MIN_FRAMES_MODEL/FIXED_FPS,1), maximum=round(MAX_FRAMES_MODEL/FIXED_FPS,1), step=0.1, value=5, label="Duration (seconds)", info=f"Clamped to model's {MIN_FRAMES_MODEL}-{MAX_FRAMES_MODEL} frames at {FIXED_FPS}fps.")
174
 
175
  with gr.Accordion("Advanced Settings", open=False):
176
  negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)