jbilcke-hf HF Staff commited on
Commit
02d0c19
·
verified ·
1 Parent(s): 312c686

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -26,7 +26,7 @@ pipe.fuse_lora()
26
 
27
  MOD_VALUE = 32
28
  DEFAULT_H_SLIDER_VALUE = 384 # 512
29
- DEFAULT_W_SLIDER_VALUE = 576 # 896
30
 
31
  SLIDER_MIN_H, SLIDER_MAX_H = 128, 1280
32
  SLIDER_MIN_W, SLIDER_MAX_W = 128, 1280
@@ -36,7 +36,7 @@ FIXED_FPS = 24
36
  MIN_FRAMES_MODEL = 8
37
  MAX_FRAMES_MODEL = 81
38
 
39
- default_prompt_t2v = "cinematic footage, people dancing in a nightclub, high quality, 4K, intricate details"
40
  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"
41
 
42
  def get_duration(prompt, height, width,
@@ -120,8 +120,8 @@ def generate_video(prompt, height, width,
120
  return video_path, current_seed
121
 
122
  with gr.Blocks() as demo:
123
- gr.Markdown("# Ultra Fast 4 steps Wan 2.1 T2V (1.3B) with CausVid LoRA")
124
- gr.Markdown("[CausVid](https://github.com/tianweiy/CausVid) is a distilled version of Wan 2.1 to run faster in just 4-8 steps, [extracted as LoRA by Kijai](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors) and is compatible with 🧨 diffusers")
125
  with gr.Row():
126
  with gr.Column():
127
  prompt_input = gr.Textbox(label="Prompt", value=default_prompt_t2v, placeholder="Describe the video you want to generate...")
 
26
 
27
  MOD_VALUE = 32
28
  DEFAULT_H_SLIDER_VALUE = 384 # 512
29
+ DEFAULT_W_SLIDER_VALUE = 640 # 896
30
 
31
  SLIDER_MIN_H, SLIDER_MAX_H = 128, 1280
32
  SLIDER_MIN_W, SLIDER_MAX_W = 128, 1280
 
36
  MIN_FRAMES_MODEL = 8
37
  MAX_FRAMES_MODEL = 81
38
 
39
+ default_prompt_t2v = "beautiful cinematic footage, a kpop band is dancing on a stage in a nightclub, high quality breakdance, 4K, tiktok video, intricate details, tv broadcast, dynamic camera"
40
  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"
41
 
42
  def get_duration(prompt, height, width,
 
120
  return video_path, current_seed
121
 
122
  with gr.Blocks() as demo:
123
+ gr.Markdown("# InstaVideo")
124
+ gr.Markdown("This 🧨 diffusers demo uses the [Wan2.1 1.3B CausVid LoRA by Kijai](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors).")
125
  with gr.Row():
126
  with gr.Column():
127
  prompt_input = gr.Textbox(label="Prompt", value=default_prompt_t2v, placeholder="Describe the video you want to generate...")