Update app.py
Browse files
app.py
CHANGED
|
@@ -181,13 +181,13 @@ with gr.Blocks() as demo:
|
|
| 181 |
<a href="https://arxiv.org/pdf/2408.06072">📜 arxiv </a>
|
| 182 |
</div>
|
| 183 |
<div style="text-align: center;display: flex;justify-content: center;align-items: center;margin-top: 1em;margin-bottom: .5em;">
|
| 184 |
-
<span>
|
| 185 |
<a href="https://huggingface.co/spaces/BestWishYsh/ConsisID-Space?duplicate=true"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-lg.svg" width="160" style="
|
| 186 |
margin-left: .75em;
|
| 187 |
"></a>
|
| 188 |
</div>
|
| 189 |
<div style="text-align: center; font-size: 15px; font-weight: bold; color: red; margin-bottom: 20px;">
|
| 190 |
-
⚠️ This demo is for academic research and experiential use only
|
| 191 |
</div>
|
| 192 |
""")
|
| 193 |
with gr.Row():
|
|
@@ -195,16 +195,16 @@ with gr.Blocks() as demo:
|
|
| 195 |
with gr.Accordion("IPT2V: Face Input", open=True):
|
| 196 |
image_input = gr.Image(label="Input Image (should contain clear face)")
|
| 197 |
prompt = gr.Textbox(label="Prompt (Less than 200 Words)", placeholder="Enter your prompt here", lines=3)
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
|
| 209 |
generate_button = gr.Button("🎬 Generate Video")
|
| 210 |
|
|
|
|
| 181 |
<a href="https://arxiv.org/pdf/2408.06072">📜 arxiv </a>
|
| 182 |
</div>
|
| 183 |
<div style="text-align: center;display: flex;justify-content: center;align-items: center;margin-top: 1em;margin-bottom: .5em;">
|
| 184 |
+
<span>This modified space uses less steps as a tradeoff for speed over quality, duplicate it to use privately</span>
|
| 185 |
<a href="https://huggingface.co/spaces/BestWishYsh/ConsisID-Space?duplicate=true"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-lg.svg" width="160" style="
|
| 186 |
margin-left: .75em;
|
| 187 |
"></a>
|
| 188 |
</div>
|
| 189 |
<div style="text-align: center; font-size: 15px; font-weight: bold; color: red; margin-bottom: 20px;">
|
| 190 |
+
⚠️ This demo is for academic research and experiential use only.⚠️
|
| 191 |
</div>
|
| 192 |
""")
|
| 193 |
with gr.Row():
|
|
|
|
| 195 |
with gr.Accordion("IPT2V: Face Input", open=True):
|
| 196 |
image_input = gr.Image(label="Input Image (should contain clear face)")
|
| 197 |
prompt = gr.Textbox(label="Prompt (Less than 200 Words)", placeholder="Enter your prompt here", lines=3)
|
| 198 |
+
with gr.Accordion("Advanced", open=False):
|
| 199 |
+
with gr.Group():
|
| 200 |
+
with gr.Column():
|
| 201 |
+
with gr.Row():
|
| 202 |
+
stips = gr.Slider(label="Steps", minimum=6, step=1, maximum=10, value=10)
|
| 203 |
+
gscale = gr.Slider(label="Guidance scale", minimum=1, step=0.1, maximum=20, value=7.0)
|
| 204 |
+
seed_param = gr.Slider(label="Inference Seed (Leave -1 for random)", minimum=0, step=32, maximum=2**8 - 1, value=-1)
|
| 205 |
+
with gr.Row():
|
| 206 |
+
enable_scale = gr.Checkbox(label="Super-Resolution (720 × 480 -> 2880 × 1920) Real-ESRGAN", value=False)
|
| 207 |
+
enable_rife = gr.Checkbox(label="Frame Interpolation (8fps -> 16fps) RIFE", value=True)
|
| 208 |
|
| 209 |
generate_button = gr.Button("🎬 Generate Video")
|
| 210 |
|