Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,8 @@ pipe.set_adapters(["causvid_lora"], adapter_weights=[0.95])
|
|
28 |
pipe.fuse_lora()
|
29 |
|
30 |
MOD_VALUE = 32
|
31 |
-
DEFAULT_H_SLIDER_VALUE =
|
32 |
-
DEFAULT_W_SLIDER_VALUE =
|
33 |
NEW_FORMULA_MAX_AREA = 480.0 * 832.0
|
34 |
|
35 |
SLIDER_MIN_H, SLIDER_MAX_H = 128, 896
|
@@ -37,7 +37,7 @@ SLIDER_MIN_W, SLIDER_MAX_W = 128, 896
|
|
37 |
MAX_SEED = np.iinfo(np.int32).max
|
38 |
|
39 |
FIXED_FPS = 24
|
40 |
-
MIN_FRAMES_MODEL =
|
41 |
MAX_FRAMES_MODEL = 120
|
42 |
|
43 |
default_prompt_i2v = "оживите это изображение кинематографичным движением, плавной анимацией. " #make this image come alive, cinematic motion, smooth animation. "
|
@@ -165,7 +165,7 @@ def generate_video(input_image, prompt, height, width,
|
|
165 |
|
166 |
with gr.Blocks() as demo:
|
167 |
gr.Markdown("# Fast 4 steps Wan 2.1 I2V (14B) with CausVid LoRA")
|
168 |
-
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_14B_T2V_lora_rank32.safetensors) and is compatible with 🧨 diffusers")
|
169 |
with gr.Row():
|
170 |
with gr.Column():
|
171 |
input_image_component = gr.Image(type="pil", label="Input Image (auto-resized to target H/W)")
|
@@ -207,8 +207,8 @@ with gr.Blocks() as demo:
|
|
207 |
|
208 |
gr.Examples(
|
209 |
examples=[
|
210 |
-
["peng.png", "a penguin playfully dancing in the snow, Antarctica", 896,
|
211 |
-
["forg.jpg", "the frog jumps around",
|
212 |
],
|
213 |
inputs=[input_image_component, prompt_input, height_input, width_input], outputs=[video_output, seed_input], fn=generate_video, cache_examples="lazy"
|
214 |
)
|
|
|
28 |
pipe.fuse_lora()
|
29 |
|
30 |
MOD_VALUE = 32
|
31 |
+
DEFAULT_H_SLIDER_VALUE = 320
|
32 |
+
DEFAULT_W_SLIDER_VALUE = 560
|
33 |
NEW_FORMULA_MAX_AREA = 480.0 * 832.0
|
34 |
|
35 |
SLIDER_MIN_H, SLIDER_MAX_H = 128, 896
|
|
|
37 |
MAX_SEED = np.iinfo(np.int32).max
|
38 |
|
39 |
FIXED_FPS = 24
|
40 |
+
MIN_FRAMES_MODEL = 8
|
41 |
MAX_FRAMES_MODEL = 120
|
42 |
|
43 |
default_prompt_i2v = "оживите это изображение кинематографичным движением, плавной анимацией. " #make this image come alive, cinematic motion, smooth animation. "
|
|
|
165 |
|
166 |
with gr.Blocks() as demo:
|
167 |
gr.Markdown("# Fast 4 steps Wan 2.1 I2V (14B) with CausVid LoRA")
|
168 |
+
#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_14B_T2V_lora_rank32.safetensors) and is compatible with 🧨 diffusers")
|
169 |
with gr.Row():
|
170 |
with gr.Column():
|
171 |
input_image_component = gr.Image(type="pil", label="Input Image (auto-resized to target H/W)")
|
|
|
207 |
|
208 |
gr.Examples(
|
209 |
examples=[
|
210 |
+
["peng.png", "a penguin playfully dancing in the snow, Antarctica", 896, 896],
|
211 |
+
["forg.jpg", "the frog jumps around", 832, 832],
|
212 |
],
|
213 |
inputs=[input_image_component, prompt_input, height_input, width_input], outputs=[video_output, seed_input], fn=generate_video, cache_examples="lazy"
|
214 |
)
|