app-cn.py
CHANGED
|
@@ -441,7 +441,7 @@ CSS = """
|
|
| 441 |
margin: 0 auto;
|
| 442 |
min-width: 0;
|
| 443 |
}
|
| 444 |
-
.page-intro, .matrix-header
|
| 445 |
text-align: center;
|
| 446 |
}
|
| 447 |
.page-intro h1 {
|
|
@@ -487,17 +487,31 @@ CSS = """
|
|
| 487 |
.matrix-header {
|
| 488 |
align-items: end;
|
| 489 |
}
|
| 490 |
-
.
|
| 491 |
-
|
| 492 |
-
|
|
|
|
|
|
|
| 493 |
}
|
| 494 |
-
.matrix-header
|
| 495 |
-
|
|
|
|
|
|
|
|
|
|
| 496 |
line-height: 1.2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 497 |
overflow-wrap: anywhere;
|
| 498 |
}
|
| 499 |
-
.matrix-header
|
|
|
|
|
|
|
| 500 |
font-size: clamp(0.68rem, 0.9vw, 0.82rem);
|
|
|
|
| 501 |
}
|
| 502 |
.rating-row {
|
| 503 |
align-items: center;
|
|
@@ -536,13 +550,13 @@ CSS = """
|
|
| 536 |
font-weight: 600;
|
| 537 |
line-height: 1.2;
|
| 538 |
}
|
| 539 |
-
.metric-overall-quality::before {
|
| 540 |
content: "Overall Quality";
|
| 541 |
}
|
| 542 |
-
.metric-semantic-alignment::before {
|
| 543 |
content: "Semantic Alignment";
|
| 544 |
}
|
| 545 |
-
.metric-temporal-alignment::before {
|
| 546 |
content: "Temporal Alignment";
|
| 547 |
}
|
| 548 |
.evaluation-card button {
|
|
@@ -652,14 +666,25 @@ with gr.Blocks(title="V2A Human Evaluation") as demo:
|
|
| 652 |
|
| 653 |
with gr.Row(elem_classes="matrix-header"):
|
| 654 |
with gr.Column(min_width=0, elem_classes="video-header"):
|
| 655 |
-
gr.
|
| 656 |
-
|
| 657 |
-
metric_class = f"metric-{metric_key.replace('_', '-')}"
|
| 658 |
-
with gr.Column(
|
| 659 |
min_width=0,
|
| 660 |
-
|
| 661 |
-
|
| 662 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 663 |
|
| 664 |
for candidate_label in CANDIDATE_LABELS:
|
| 665 |
with gr.Row(equal_height=True, elem_classes="rating-row"):
|
|
|
|
| 441 |
margin: 0 auto;
|
| 442 |
min-width: 0;
|
| 443 |
}
|
| 444 |
+
.page-intro, .matrix-header, .completion-page {
|
| 445 |
text-align: center;
|
| 446 |
}
|
| 447 |
.page-intro h1 {
|
|
|
|
| 487 |
.matrix-header {
|
| 488 |
align-items: end;
|
| 489 |
}
|
| 490 |
+
.video-header, .metric-header, .matrix-header-content {
|
| 491 |
+
width: 100% !important;
|
| 492 |
+
min-width: 0 !important;
|
| 493 |
+
max-width: 100%;
|
| 494 |
+
overflow: visible !important;
|
| 495 |
}
|
| 496 |
+
.matrix-header-content {
|
| 497 |
+
display: flex !important;
|
| 498 |
+
flex-direction: column;
|
| 499 |
+
align-items: center;
|
| 500 |
+
justify-content: flex-end;
|
| 501 |
line-height: 1.2;
|
| 502 |
+
}
|
| 503 |
+
.matrix-header-title {
|
| 504 |
+
width: 100%;
|
| 505 |
+
margin: 0;
|
| 506 |
+
font-size: clamp(0.78rem, 1.25vw, 1.05rem) !important;
|
| 507 |
+
font-weight: 600;
|
| 508 |
overflow-wrap: anywhere;
|
| 509 |
}
|
| 510 |
+
.matrix-header-scale {
|
| 511 |
+
width: 100%;
|
| 512 |
+
margin-top: 2px;
|
| 513 |
font-size: clamp(0.68rem, 0.9vw, 0.82rem);
|
| 514 |
+
overflow-wrap: anywhere;
|
| 515 |
}
|
| 516 |
.rating-row {
|
| 517 |
align-items: center;
|
|
|
|
| 550 |
font-weight: 600;
|
| 551 |
line-height: 1.2;
|
| 552 |
}
|
| 553 |
+
.metric-cell.metric-overall-quality::before {
|
| 554 |
content: "Overall Quality";
|
| 555 |
}
|
| 556 |
+
.metric-cell.metric-semantic-alignment::before {
|
| 557 |
content: "Semantic Alignment";
|
| 558 |
}
|
| 559 |
+
.metric-cell.metric-temporal-alignment::before {
|
| 560 |
content: "Temporal Alignment";
|
| 561 |
}
|
| 562 |
.evaluation-card button {
|
|
|
|
| 666 |
|
| 667 |
with gr.Row(elem_classes="matrix-header"):
|
| 668 |
with gr.Column(min_width=0, elem_classes="video-header"):
|
| 669 |
+
gr.HTML(
|
| 670 |
+
'<div class="matrix-header-title">Method Output</div>',
|
|
|
|
|
|
|
| 671 |
min_width=0,
|
| 672 |
+
apply_default_css=False,
|
| 673 |
+
elem_classes="matrix-header-content",
|
| 674 |
+
)
|
| 675 |
+
for metric_key, metric_label in METRIC_LABELS.items():
|
| 676 |
+
with gr.Column(min_width=0, elem_classes="metric-header"):
|
| 677 |
+
gr.HTML(
|
| 678 |
+
(
|
| 679 |
+
f'<div class="matrix-header-title">{metric_label}</div>'
|
| 680 |
+
'<div class="matrix-header-scale">'
|
| 681 |
+
"1 = Poor 路 5 = Best"
|
| 682 |
+
"</div>"
|
| 683 |
+
),
|
| 684 |
+
min_width=0,
|
| 685 |
+
apply_default_css=False,
|
| 686 |
+
elem_classes="matrix-header-content",
|
| 687 |
+
)
|
| 688 |
|
| 689 |
for candidate_label in CANDIDATE_LABELS:
|
| 690 |
with gr.Row(equal_height=True, elem_classes="rating-row"):
|
app.py
CHANGED
|
@@ -441,7 +441,7 @@ CSS = """
|
|
| 441 |
margin: 0 auto;
|
| 442 |
min-width: 0;
|
| 443 |
}
|
| 444 |
-
.page-intro, .matrix-header
|
| 445 |
text-align: center;
|
| 446 |
}
|
| 447 |
.page-intro h1 {
|
|
@@ -487,17 +487,31 @@ CSS = """
|
|
| 487 |
.matrix-header {
|
| 488 |
align-items: end;
|
| 489 |
}
|
| 490 |
-
.
|
| 491 |
-
|
| 492 |
-
|
|
|
|
|
|
|
| 493 |
}
|
| 494 |
-
.matrix-header
|
| 495 |
-
|
|
|
|
|
|
|
|
|
|
| 496 |
line-height: 1.2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 497 |
overflow-wrap: anywhere;
|
| 498 |
}
|
| 499 |
-
.matrix-header
|
|
|
|
|
|
|
| 500 |
font-size: clamp(0.68rem, 0.9vw, 0.82rem);
|
|
|
|
| 501 |
}
|
| 502 |
.rating-row {
|
| 503 |
align-items: center;
|
|
@@ -536,13 +550,13 @@ CSS = """
|
|
| 536 |
font-weight: 600;
|
| 537 |
line-height: 1.2;
|
| 538 |
}
|
| 539 |
-
.metric-overall-quality::before {
|
| 540 |
content: "Overall Quality";
|
| 541 |
}
|
| 542 |
-
.metric-semantic-alignment::before {
|
| 543 |
content: "Semantic Alignment";
|
| 544 |
}
|
| 545 |
-
.metric-temporal-alignment::before {
|
| 546 |
content: "Temporal Alignment";
|
| 547 |
}
|
| 548 |
.evaluation-card button {
|
|
@@ -653,14 +667,25 @@ with gr.Blocks(title="V2A Human Evaluation") as demo:
|
|
| 653 |
|
| 654 |
with gr.Row(elem_classes="matrix-header"):
|
| 655 |
with gr.Column(min_width=0, elem_classes="video-header"):
|
| 656 |
-
gr.
|
| 657 |
-
|
| 658 |
-
metric_class = f"metric-{metric_key.replace('_', '-')}"
|
| 659 |
-
with gr.Column(
|
| 660 |
min_width=0,
|
| 661 |
-
|
| 662 |
-
|
| 663 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 664 |
|
| 665 |
for candidate_label in CANDIDATE_LABELS:
|
| 666 |
with gr.Row(equal_height=True, elem_classes="rating-row"):
|
|
|
|
| 441 |
margin: 0 auto;
|
| 442 |
min-width: 0;
|
| 443 |
}
|
| 444 |
+
.page-intro, .matrix-header, .completion-page {
|
| 445 |
text-align: center;
|
| 446 |
}
|
| 447 |
.page-intro h1 {
|
|
|
|
| 487 |
.matrix-header {
|
| 488 |
align-items: end;
|
| 489 |
}
|
| 490 |
+
.video-header, .metric-header, .matrix-header-content {
|
| 491 |
+
width: 100% !important;
|
| 492 |
+
min-width: 0 !important;
|
| 493 |
+
max-width: 100%;
|
| 494 |
+
overflow: visible !important;
|
| 495 |
}
|
| 496 |
+
.matrix-header-content {
|
| 497 |
+
display: flex !important;
|
| 498 |
+
flex-direction: column;
|
| 499 |
+
align-items: center;
|
| 500 |
+
justify-content: flex-end;
|
| 501 |
line-height: 1.2;
|
| 502 |
+
}
|
| 503 |
+
.matrix-header-title {
|
| 504 |
+
width: 100%;
|
| 505 |
+
margin: 0;
|
| 506 |
+
font-size: clamp(0.78rem, 1.25vw, 1.05rem) !important;
|
| 507 |
+
font-weight: 600;
|
| 508 |
overflow-wrap: anywhere;
|
| 509 |
}
|
| 510 |
+
.matrix-header-scale {
|
| 511 |
+
width: 100%;
|
| 512 |
+
margin-top: 2px;
|
| 513 |
font-size: clamp(0.68rem, 0.9vw, 0.82rem);
|
| 514 |
+
overflow-wrap: anywhere;
|
| 515 |
}
|
| 516 |
.rating-row {
|
| 517 |
align-items: center;
|
|
|
|
| 550 |
font-weight: 600;
|
| 551 |
line-height: 1.2;
|
| 552 |
}
|
| 553 |
+
.metric-cell.metric-overall-quality::before {
|
| 554 |
content: "Overall Quality";
|
| 555 |
}
|
| 556 |
+
.metric-cell.metric-semantic-alignment::before {
|
| 557 |
content: "Semantic Alignment";
|
| 558 |
}
|
| 559 |
+
.metric-cell.metric-temporal-alignment::before {
|
| 560 |
content: "Temporal Alignment";
|
| 561 |
}
|
| 562 |
.evaluation-card button {
|
|
|
|
| 667 |
|
| 668 |
with gr.Row(elem_classes="matrix-header"):
|
| 669 |
with gr.Column(min_width=0, elem_classes="video-header"):
|
| 670 |
+
gr.HTML(
|
| 671 |
+
'<div class="matrix-header-title">Method Output</div>',
|
|
|
|
|
|
|
| 672 |
min_width=0,
|
| 673 |
+
apply_default_css=False,
|
| 674 |
+
elem_classes="matrix-header-content",
|
| 675 |
+
)
|
| 676 |
+
for metric_key, metric_label in METRIC_LABELS.items():
|
| 677 |
+
with gr.Column(min_width=0, elem_classes="metric-header"):
|
| 678 |
+
gr.HTML(
|
| 679 |
+
(
|
| 680 |
+
f'<div class="matrix-header-title">{metric_label}</div>'
|
| 681 |
+
'<div class="matrix-header-scale">'
|
| 682 |
+
"1 = Poor 路 5 = Best"
|
| 683 |
+
"</div>"
|
| 684 |
+
),
|
| 685 |
+
min_width=0,
|
| 686 |
+
apply_default_css=False,
|
| 687 |
+
elem_classes="matrix-header-content",
|
| 688 |
+
)
|
| 689 |
|
| 690 |
for candidate_label in CANDIDATE_LABELS:
|
| 691 |
with gr.Row(equal_height=True, elem_classes="rating-row"):
|