Spaces:
Build error
Build error
updated app
Browse files
app.py
CHANGED
@@ -198,14 +198,12 @@ def video_inference(
|
|
198 |
|
199 |
return "avatar.gif"
|
200 |
|
201 |
-
|
202 |
-
|
203 |
-
description = "<p style='text-align: center'> Create a personal avatar from just a single image using ROME. <br> <a href='https://arxiv.org/abs/2206.08343' target='_blank'>Paper</a> | <a href='https://samsunglabs.github.io/rome' target='_blank'>Project Page</a> | <a href='https://github.com/SamsungLabs/rome' target='_blank'>Github</a> </p>"
|
204 |
-
quote = "<p style='text-align: center'> <blockquote> [The] system creates realistic mesh-based avatars from a single <strong>source</strong> photo. These avatars are rigged, i.e., they can be driven by the animation parameters from a different <strong>driving</strong> frame. </blockquote> </p>"
|
205 |
|
206 |
with gr.Blocks() as demo:
|
207 |
gr.Markdown("# **<p align='center'>ROME: Realistic one-shot mesh-based head avatars</p>**")
|
208 |
-
gr.HTML(
|
209 |
gr.Markdown(description)
|
210 |
gr.HTML(quote)
|
211 |
|
@@ -217,8 +215,8 @@ with gr.Blocks() as demo:
|
|
217 |
image_button = gr.Button("Predict")
|
218 |
with gr.Tab("Video Inference"):
|
219 |
with gr.Row():
|
220 |
-
source_img2 = gr.Image(type="pil", label="
|
221 |
-
driver_vid = gr.Video(label="
|
222 |
video_output = gr.Image(label="Rendered GIF avatar")
|
223 |
video_button = gr.Button("Predict")
|
224 |
|
|
|
198 |
|
199 |
return "avatar.gif"
|
200 |
|
201 |
+
description = """<p style='text-align: center'> Create a personal avatar from just a single image using ROME. <br> <a href='https://arxiv.org/abs/2206.08343' target='_blank'>Paper</a> | <a href='https://samsunglabs.github.io/rome' target='_blank'>Project Page</a> | <a href='https://github.com/SamsungLabs/rome' target='_blank'>Github</a> </p>"""
|
202 |
+
quote = """<p style='text-align: center'> <blockquote> [The] system creates realistic mesh-based avatars from a single <strong>source</strong> photo. These avatars are rigged, i.e., they can be driven by the animation parameters from a different <strong>driving</strong> frame. </blockquote> </p>"""
|
|
|
|
|
203 |
|
204 |
with gr.Blocks() as demo:
|
205 |
gr.Markdown("# **<p align='center'>ROME: Realistic one-shot mesh-based head avatars</p>**")
|
206 |
+
gr.HTML(value="<img src='file/media/tease.gif' alt='Teaser' style='display: block; margin: auto;'>")
|
207 |
gr.Markdown(description)
|
208 |
gr.HTML(quote)
|
209 |
|
|
|
215 |
image_button = gr.Button("Predict")
|
216 |
with gr.Tab("Video Inference"):
|
217 |
with gr.Row():
|
218 |
+
source_img2 = gr.Image(type="pil", label="Source image", show_label=True)
|
219 |
+
driver_vid = gr.Video(label="Driver video")
|
220 |
video_output = gr.Image(label="Rendered GIF avatar")
|
221 |
video_button = gr.Button("Predict")
|
222 |
|