Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -235,9 +235,23 @@ def generate_video(gallery_images, mode, prompt, height, width,
|
|
| 235 |
export_to_video(output_frames_list, video_path, fps=FIXED_FPS)
|
| 236 |
return video_path, current_seed
|
| 237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
with gr.Blocks() as demo:
|
| 239 |
gr.Markdown("# Fast Wan 2.1 VACE (14B)")
|
| 240 |
-
gr.Markdown("Using [Wan2.1-VACE-14B](https://huggingface.co/Wan-AI/Wan2.1-VACE-14B-diffusers)
|
|
|
|
| 241 |
|
| 242 |
with gr.Row():
|
| 243 |
with gr.Column():
|
|
@@ -258,8 +272,8 @@ with gr.Blocks() as demo:
|
|
| 258 |
mode_radio = gr.Radio(
|
| 259 |
choices=["Ref2V", "FLF2V", "Random2V"],
|
| 260 |
value="Ref2V",
|
| 261 |
-
label="
|
| 262 |
-
info="Ref2V: Reference to Video | FLF2V: First-Last Frame to Video | Random2V: Random
|
| 263 |
)
|
| 264 |
|
| 265 |
prompt_input = gr.Textbox(label="Prompt", value=MODE_PROMPTS["Ref2V"])
|
|
|
|
| 235 |
export_to_video(output_frames_list, video_path, fps=FIXED_FPS)
|
| 236 |
return video_path, current_seed
|
| 237 |
|
| 238 |
+
control_modes = """
|
| 239 |
+
### 3 control modes avilable:
|
| 240 |
+
|
| 241 |
+
- ### Ref2V (Reference-to-Video)
|
| 242 |
+
Generate a video incorporating elements from input reference images
|
| 243 |
+
|
| 244 |
+
- ### FLF2V (First-Last Frame-to-Video)
|
| 245 |
+
Generate a video using first and last frame conditioning defined by input images
|
| 246 |
+
|
| 247 |
+
- ### Random2V (Random-to-Video)
|
| 248 |
+
Generate a video with intermediate transitions between multiple input images
|
| 249 |
+
"""
|
| 250 |
+
|
| 251 |
with gr.Blocks() as demo:
|
| 252 |
gr.Markdown("# Fast Wan 2.1 VACE (14B)")
|
| 253 |
+
gr.Markdown("Using [**Wan2.1-VACE-14B**](https://huggingface.co/Wan-AI/Wan2.1-VACE-14B-diffusers) + [**👻FusionX Phantom LoRA**](https://huggingface.co/vrgamedevgirl84/Wan14BT2VFusioniX) with **🧨diffusers**, for fast video generation with multiple conditions 🏎️")
|
| 254 |
+
gr.Markdown(f"{control_modes}")
|
| 255 |
|
| 256 |
with gr.Row():
|
| 257 |
with gr.Column():
|
|
|
|
| 272 |
mode_radio = gr.Radio(
|
| 273 |
choices=["Ref2V", "FLF2V", "Random2V"],
|
| 274 |
value="Ref2V",
|
| 275 |
+
label="Control Mode",
|
| 276 |
+
info="Ref2V: Reference to Video | FLF2V: First-Last Frame to Video | Random2V: Random to Video"
|
| 277 |
)
|
| 278 |
|
| 279 |
prompt_input = gr.Textbox(label="Prompt", value=MODE_PROMPTS["Ref2V"])
|