Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,6 +64,7 @@ def generate_video(
|
|
| 64 |
num_steps: int,
|
| 65 |
fps: int,
|
| 66 |
quality: int,
|
|
|
|
| 67 |
):
|
| 68 |
if pil_image is None:
|
| 69 |
raise gr.Error("Please upload a face image first!")
|
|
@@ -98,6 +99,26 @@ with gr.Blocks(theme=gr.themes.Soft(), css="footer {display: none !important}")
|
|
| 98 |
# Stand-In IP2V
|
| 99 |
"""
|
| 100 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
with gr.Row():
|
| 103 |
with gr.Column(scale=1):
|
|
@@ -113,7 +134,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css="footer {display: none !important}")
|
|
| 113 |
input_prompt = gr.Textbox(
|
| 114 |
label="Prompt",
|
| 115 |
lines=4,
|
| 116 |
-
value="
|
| 117 |
placeholder="Please enter a detailed description of the scene, character actions, expressions, etc...",
|
| 118 |
)
|
| 119 |
|
|
@@ -130,7 +151,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css="footer {display: none !important}")
|
|
| 130 |
input_negative_prompt = gr.Textbox(
|
| 131 |
label="Negative Prompt",
|
| 132 |
lines=3,
|
| 133 |
-
value="
|
| 134 |
)
|
| 135 |
input_steps = gr.Slider(
|
| 136 |
label="Inference Steps",
|
|
|
|
| 64 |
num_steps: int,
|
| 65 |
fps: int,
|
| 66 |
quality: int,
|
| 67 |
+
progress=gr.Progress(track_tqdm=True)
|
| 68 |
):
|
| 69 |
if pil_image is None:
|
| 70 |
raise gr.Error("Please upload a face image first!")
|
|
|
|
| 99 |
# Stand-In IP2V
|
| 100 |
"""
|
| 101 |
)
|
| 102 |
+
gr.Markdown("A Lightweight and Plug-and-Play Identity Control for Video Generation")
|
| 103 |
+
gr.HTML("""
|
| 104 |
+
<div style="display:flex;column-gap:4px;">
|
| 105 |
+
<a href="https://github.com/WeChatCV/Stand-In">
|
| 106 |
+
<img src='https://img.shields.io/badge/GitHub-Repo-blue'>
|
| 107 |
+
</a>
|
| 108 |
+
<a href="https://stand-in-video.github.io/">
|
| 109 |
+
<img src='https://img.shields.io/badge/Project-Page-green'>
|
| 110 |
+
</a>
|
| 111 |
+
<a href="https://arxiv.org/abs/2508.07901">
|
| 112 |
+
<img src='https://img.shields.io/badge/ArXiv-Paper-red'>
|
| 113 |
+
</a>
|
| 114 |
+
<a href="https://huggingface.co/spaces/fffiloni/Stand-In?duplicate=true">
|
| 115 |
+
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-sm.svg" alt="Duplicate this Space">
|
| 116 |
+
</a>
|
| 117 |
+
<a href="https://huggingface.co/fffiloni">
|
| 118 |
+
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF">
|
| 119 |
+
</a>
|
| 120 |
+
</div>
|
| 121 |
+
""")
|
| 122 |
|
| 123 |
with gr.Row():
|
| 124 |
with gr.Column(scale=1):
|
|
|
|
| 134 |
input_prompt = gr.Textbox(
|
| 135 |
label="Prompt",
|
| 136 |
lines=4,
|
| 137 |
+
value="A man sits comfortably at his desk, facing the camera, as if conversing with a friend or family member in front of a screen. His eyes are focused yet gentle, and a natural smile plays on his lips. The background is his meticulously decorated personal space, with photos and a world map on the wall, conveying a sense of intimacy and modern communication.",
|
| 138 |
placeholder="Please enter a detailed description of the scene, character actions, expressions, etc...",
|
| 139 |
)
|
| 140 |
|
|
|
|
| 151 |
input_negative_prompt = gr.Textbox(
|
| 152 |
label="Negative Prompt",
|
| 153 |
lines=3,
|
| 154 |
+
value="Vibrant colors, overexposure, static, blurred details, subtitles, style, artwork, painting, still image, overall grayness, worst quality, low quality, JPEG compression residue, ugly, mutilated, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still image, cluttered background, three legs, crowded background, walking backwards",
|
| 155 |
)
|
| 156 |
input_steps = gr.Slider(
|
| 157 |
label="Inference Steps",
|