Spaces:
Running
Running
BaiYeBuTingXuan commited on
Commit 路
df108ed
1
Parent(s): 4a7e0e9
add tutorials for all
Browse files
app.py
CHANGED
|
@@ -60,6 +60,9 @@ from src.submission.publication import request_publication, identity_publication
|
|
| 60 |
from src.submission.registry import can_manage_submission
|
| 61 |
from src.tasks import TASKS
|
| 62 |
from src.tasks.video_generation import TUTORIAL_URL as VIDEO_GENERATION_TUTORIAL_URL
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
TAB_RENDER_OPTIONS = {"render_children": True} if "render_children" in signature(gr.Tab).parameters else {}
|
| 65 |
|
|
@@ -469,7 +472,7 @@ TASK_GROUPS = [
|
|
| 469 |
"```"
|
| 470 |
),
|
| 471 |
"ranking": (
|
| 472 |
-
"- Please refer to the [tutorial]({VIDEO_GENERATION_TUTORIAL_URL}) for detailed instructions.\n"
|
| 473 |
"- Static/Moving and Large/Mini variants should be treated as separate subtasks.\n"
|
| 474 |
),
|
| 475 |
"tasks": [name for name in TASKS if name.startswith("videoGeneration_")],
|
|
@@ -488,7 +491,8 @@ TASK_GROUPS = [
|
|
| 488 |
),
|
| 489 |
"expected_layout": TASKS["futurePrediction"].expected_scene_layout,
|
| 490 |
"ranking": (
|
| 491 |
-
""
|
|
|
|
| 492 |
),
|
| 493 |
"tasks": ["futurePrediction"],
|
| 494 |
"meta_line": "Metrics: PSNR 路 SSIM 路 LPIPS 路 PMF",
|
|
@@ -525,7 +529,7 @@ TASK_GROUPS = [
|
|
| 525 |
"description": TASKS["motionTransfer"].description,
|
| 526 |
"expected_layout": TASKS["motionTransfer"].expected_scene_layout,
|
| 527 |
"ranking": (
|
| 528 |
-
""
|
| 529 |
),
|
| 530 |
"tasks": ["motionTransfer"],
|
| 531 |
"meta_line": "Metrics: PSNR 路 SSIM 路 LPIPS 路 PMF",
|
|
@@ -569,7 +573,7 @@ def _render_info_panels(group: dict) -> None:
|
|
| 569 |
with gr.Accordion("Expected Scene Layout", open=False, elem_classes="info-panel guide-utility"):
|
| 570 |
gr.Markdown(group["expected_layout"], elem_classes="markdown-text")
|
| 571 |
with gr.Column(scale=1):
|
| 572 |
-
with gr.Accordion("
|
| 573 |
gr.Markdown(group["ranking"], elem_classes="markdown-text")
|
| 574 |
|
| 575 |
|
|
|
|
| 60 |
from src.submission.registry import can_manage_submission
|
| 61 |
from src.tasks import TASKS
|
| 62 |
from src.tasks.video_generation import TUTORIAL_URL as VIDEO_GENERATION_TUTORIAL_URL
|
| 63 |
+
from src.tasks.future_prediction import TUTORIAL_URL as FUTURE_PREDICTION_TUTORIAL_URL
|
| 64 |
+
# from src.tasks.property_estimation import TUTORIAL_URL as PROPERTY_ESTIMATION_TUTORIAL_URL
|
| 65 |
+
from src.tasks.motion_transfer import TUTORIAL_URL as MOTION_TRANSFER_TUTORIAL_URL
|
| 66 |
|
| 67 |
TAB_RENDER_OPTIONS = {"render_children": True} if "render_children" in signature(gr.Tab).parameters else {}
|
| 68 |
|
|
|
|
| 472 |
"```"
|
| 473 |
),
|
| 474 |
"ranking": (
|
| 475 |
+
f"- Please refer to the [tutorial]({VIDEO_GENERATION_TUTORIAL_URL}) for detailed instructions.\n"
|
| 476 |
"- Static/Moving and Large/Mini variants should be treated as separate subtasks.\n"
|
| 477 |
),
|
| 478 |
"tasks": [name for name in TASKS if name.startswith("videoGeneration_")],
|
|
|
|
| 491 |
),
|
| 492 |
"expected_layout": TASKS["futurePrediction"].expected_scene_layout,
|
| 493 |
"ranking": (
|
| 494 |
+
f"- Please refer to the [tutorial]({FUTURE_PREDICTION_TUTORIAL_URL}) for detailed instructions.\n"
|
| 495 |
+
|
| 496 |
),
|
| 497 |
"tasks": ["futurePrediction"],
|
| 498 |
"meta_line": "Metrics: PSNR 路 SSIM 路 LPIPS 路 PMF",
|
|
|
|
| 529 |
"description": TASKS["motionTransfer"].description,
|
| 530 |
"expected_layout": TASKS["motionTransfer"].expected_scene_layout,
|
| 531 |
"ranking": (
|
| 532 |
+
f"- Please refer to the [tutorial]({MOTION_TRANSFER_TUTORIAL_URL}) for detailed instructions.\n"
|
| 533 |
),
|
| 534 |
"tasks": ["motionTransfer"],
|
| 535 |
"meta_line": "Metrics: PSNR 路 SSIM 路 LPIPS 路 PMF",
|
|
|
|
| 573 |
with gr.Accordion("Expected Scene Layout", open=False, elem_classes="info-panel guide-utility"):
|
| 574 |
gr.Markdown(group["expected_layout"], elem_classes="markdown-text")
|
| 575 |
with gr.Column(scale=1):
|
| 576 |
+
with gr.Accordion("Notes", open=False, elem_classes="info-panel guide-utility"):
|
| 577 |
gr.Markdown(group["ranking"], elem_classes="markdown-text")
|
| 578 |
|
| 579 |
|