Update app.py
Browse files
app.py
CHANGED
|
@@ -354,9 +354,15 @@ def run(source, action_source, hair_source, top_source, bottom_source, target, a
|
|
| 354 |
return 'demo.gif'
|
| 355 |
|
| 356 |
|
| 357 |
-
gr.
|
| 358 |
-
|
| 359 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 360 |
gr.Markdown(
|
| 361 |
"""
|
| 362 |
π¦π» Human - Source Avatar
|
|
@@ -376,10 +382,43 @@ gr.Interface(
|
|
| 376 |
gr.Radio(choices=["grey", "khaki", "linen", "ocre"], value="ocre"),
|
| 377 |
gr.Radio(choices=["denim", "olive", "brown"], value="brown"),
|
| 378 |
],
|
| 379 |
-
|
| 380 |
gr.components.Image(type="file", label="Domain Disentanglement"),
|
| 381 |
],
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 354 |
return 'demo.gif'
|
| 355 |
|
| 356 |
|
| 357 |
+
demo = gr.Blocks()
|
| 358 |
+
|
| 359 |
+
with demo:
|
| 360 |
+
gr.Markdown(
|
| 361 |
+
"""
|
| 362 |
+
# TranSVAE for Unsupervised Video Domain Adaptation
|
| 363 |
+
A demo.
|
| 364 |
+
""")
|
| 365 |
+
inp = [
|
| 366 |
gr.Markdown(
|
| 367 |
"""
|
| 368 |
π¦π» Human - Source Avatar
|
|
|
|
| 382 |
gr.Radio(choices=["grey", "khaki", "linen", "ocre"], value="ocre"),
|
| 383 |
gr.Radio(choices=["denim", "olive", "brown"], value="brown"),
|
| 384 |
],
|
| 385 |
+
out = [
|
| 386 |
gr.components.Image(type="file", label="Domain Disentanglement"),
|
| 387 |
],
|
| 388 |
+
inp.change(
|
| 389 |
+
fn=run,
|
| 390 |
+
inputs=inp,
|
| 391 |
+
outputs=out,
|
| 392 |
+
)
|
| 393 |
+
|
| 394 |
+
demo.launch()
|
| 395 |
+
|
| 396 |
+
#gr.Interface(
|
| 397 |
+
# fn=run,
|
| 398 |
+
# inputs=[
|
| 399 |
+
# gr.Markdown(
|
| 400 |
+
# """
|
| 401 |
+
# π¦π» Human - Source Avatar
|
| 402 |
+
# """
|
| 403 |
+
# ),
|
| 404 |
+
# gr.Radio(choices=["slash", "spellcard", "walk"], value="slash"),
|
| 405 |
+
# gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
|
| 406 |
+
# gr.Radio(choices=["brown", "blue", "white"], value="brown"),
|
| 407 |
+
# gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
|
| 408 |
+
# gr.Markdown(
|
| 409 |
+
# """
|
| 410 |
+
# π½ Alien - Target Avatar
|
| 411 |
+
# """
|
| 412 |
+
# ),
|
| 413 |
+
# gr.Radio(choices=["slash", "spellcard", "walk"], value="walk"),
|
| 414 |
+
# gr.Radio(choices=["violet", "silver", "purple", "grey", "golden"], value="golden"),
|
| 415 |
+
# gr.Radio(choices=["grey", "khaki", "linen", "ocre"], value="ocre"),
|
| 416 |
+
# gr.Radio(choices=["denim", "olive", "brown"], value="brown"),
|
| 417 |
+
# ],
|
| 418 |
+
# outputs=[
|
| 419 |
+
# gr.components.Image(type="file", label="Domain Disentanglement"),
|
| 420 |
+
# ],
|
| 421 |
+
# live=False,
|
| 422 |
+
# cache_examples=True,
|
| 423 |
+
# title="TranSVAE for Unsupervised Video Domain Adaptation",
|
| 424 |
+
#).launch()
|