|
|
<!DOCTYPE html> |
|
|
<html> |
|
|
<head> |
|
|
<title>Annotating Videos</title> |
|
|
<meta charset="UTF-8"> |
|
|
<link rel="stylesheet" href="/video_eval_bench/display.css"> |
|
|
</head> |
|
|
|
|
|
<body> |
|
|
<video class="video_style" controls autoplay muted loop> |
|
|
<source src="{{ url_for('static', filename=video) }}" type="video/mp4"> |
|
|
</video> |
|
|
|
|
|
<p class="input_prompt"><b>Input Prompt</b>: <br>{{text_prompt}}</p> |
|
|
|
|
|
<div class = "current_progress"> |
|
|
<p><b>Least index of <br>incomplete video </b>: <br>{{ unanswered_least_idx+1 }} <br></p> |
|
|
<p><b>Current progress</b>: <br>{{ current_idx+1 }}/{{end_index+1 }}</p> |
|
|
<form action="{{ url_for('navigate_turn') }}" method="post"> |
|
|
<input type="hidden" name="current_idx" value="{{ current_idx }}"> |
|
|
<input type="hidden" name="_is_val" value="{{ _is_val }}"> |
|
|
Turn to: <input type="text" name="next_idx" placeholder="123" class="idx_input_box"> |
|
|
<button type="submit" style="width: 60px; height: 30px; font-size: 13px;" value="turn"> Enter</button> |
|
|
</form> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div style="position:fixed; bottom: 1%; right:1%;"> |
|
|
{% if vid_name in answered_vid_list %} |
|
|
<p class="answered">Answered. <br></p> |
|
|
<div class="table_style"> |
|
|
<p> ("3": Good, "2":Average, "1": Bad <br>"-1": reported as problematic.)<br></p> |
|
|
<table> |
|
|
<tr><td>visual/optical quality</td> <td>{{ current_answers[0] }}</td> |
|
|
<td>objects consistency</td> <td>{{ current_answers[1] }}</td></tr> |
|
|
<tr><td>dynamic degree</td> <td>{{ current_answers[2] }}</td> |
|
|
<td>motion smoothness</td> <td>{{ current_answers[3] }}</td></tr> |
|
|
<tr><td>text-to-video alignment</td> <td>{{ current_answers[4] }}</td> |
|
|
<td>factual consistency</td> <td>{{ current_answers[5] }}</td></tr> |
|
|
<tr><td>overall score</td> <td>{{ current_answers[6] }}</td></tr> |
|
|
</table> |
|
|
</div> |
|
|
{% else %} |
|
|
<p class="not-answered">Not answered.</p> |
|
|
{% endif %} |
|
|
</div> |
|
|
|
|
|
<div class="QA-text"> |
|
|
<form action="{{ url_for('submit') }}" method="post"> |
|
|
<input type="hidden" name="current_idx" value="{{ current_idx }}"> |
|
|
<input type="hidden" name="problem" value="1"> |
|
|
<input type="hidden" name="text_prompt" value="{{ text_prompt }}"> |
|
|
<input type="hidden" name="video" value="{{ video }}"> |
|
|
<button type="submit" name="logout" class="button_report_problem" >Report Problem</button> |
|
|
</form> |
|
|
(If you think this text prompt is unclear or meaningless or it contains toxic content, |
|
|
or that you can't see the video, or the video contains toxic content, |
|
|
you can click the botton above to report problem and skip this video.) |
|
|
<br> |
|
|
<br> |
|
|
</div> |
|
|
|
|
|
<div class="QA-text"> |
|
|
<form action="{{ url_for('logout') }}" method="post"> |
|
|
<input type="hidden" name="current_idx" value="{{ current_idx }}"> |
|
|
<input type="hidden" name="language" value="en"> |
|
|
<button type="submit" name="logout" class="button_logout">Log out</button> |
|
|
</form> |
|
|
(If you want to revisit the welcome page, you can log out at any time, the progress will be saved.)<br> |
|
|
</div> |
|
|
|
|
|
<div class="QA-text"> |
|
|
<br> |
|
|
<form action="{{ url_for('navigate_main') }}" method="post"> |
|
|
<input type="hidden" name="current_idx" value="{{ current_idx }}"> |
|
|
<input type="hidden" name="_is_val" value="{{ _is_val }}"> |
|
|
<button type="submit" name="direction" class="button_last_next" value="last" >Last One</button> |
|
|
<button type="submit" name="direction" class="button_last_next" value="next" >Next One</button> |
|
|
</form> |
|
|
</div> |
|
|
|
|
|
<form action="{{ url_for('submit') }}" method="post"> |
|
|
<input type="hidden" name="text_prompt" value="{{ text_prompt }}"> |
|
|
<input type="hidden" name="video" value="{{ video }}"> |
|
|
<input type="hidden" name="current_idx" value="{{ current_idx }}"> |
|
|
<div class="QA-text"> |
|
|
{{ before_start_anno | safe }} |
|
|
</div> |
|
|
|
|
|
{% for que_idx in range(num_que) %} |
|
|
<div class="QA-text"> |
|
|
{{ subscore_def[que_idx] | safe }} |
|
|
</div> |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
<div class="choice_box" style="position:fixed; top: 3%; right:31%;"> |
|
|
1. visual quality |
|
|
<label><input type="radio" name="q1" value="3" {% if current_answers[0] == '3' %} checked {% endif %}>Good</label> |
|
|
<label><input type="radio" name="q1" value="2" {% if current_answers[0] == '2' %} checked {% endif %}>Average</label> |
|
|
<label><input type="radio" name="q1" value="1" {% if current_answers[0] == '1' %} checked {% endif %}>Bad</label> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="choice_box" style="position:fixed; top: 13%; right:31%;"> |
|
|
2. object consistency |
|
|
<label><input type="radio" name="q2" value="3" {% if current_answers[1] == '3' %} checked {% endif %}>Good</label> |
|
|
<label><input type="radio" name="q2" value="2" {% if current_answers[1] == '2' %} checked {% endif %}>Average</label> |
|
|
<label><input type="radio" name="q2" value="1" {% if current_answers[1] == '1' %} checked {% endif %}>Bad</label> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="choice_box" style="position:fixed; top: 23%; right:31%;"> |
|
|
3. dynamic degree |
|
|
<label><input type="radio" name="q3" value="3" {% if current_answers[2] == '3' %} checked {% endif %}>Good</label> |
|
|
<label><input type="radio" name="q3" value="2" {% if current_answers[2] == '2' %} checked {% endif %}>Average</label> |
|
|
<label><input type="radio" name="q3" value="1" {% if current_answers[2] == '1' %} checked {% endif %}>Bad</label> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="choice_box" style="position:fixed; top: 33%; right:31%;"> |
|
|
4. motion smooth |
|
|
<label><input type="radio" name="q4" value="3" {% if current_answers[3] == '3' %} checked {% endif %}>Good</label> |
|
|
<label><input type="radio" name="q4" value="2" {% if current_answers[3] == '2' %} checked {% endif %}>Average</label> |
|
|
<label><input type="radio" name="q4" value="1" {% if current_answers[3] == '1' %} checked {% endif %}>Bad</label> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="choice_box" style="position:fixed; top: 43%; right:31%;"> |
|
|
5. text alignment |
|
|
<label><input type="radio" name="q5" value="3" {% if current_answers[4] == '3' %} checked {% endif %}>Good</label> |
|
|
<label><input type="radio" name="q5" value="2" {% if current_answers[4] == '2' %} checked {% endif %}>Average</label> |
|
|
<label><input type="radio" name="q5" value="1" {% if current_answers[4] == '1' %} checked {% endif %}>Bad</label> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="choice_box" style="position:fixed; top: 53%; right:31%;"> |
|
|
6. fact consistency |
|
|
<label><input type="radio" name="q6" value="3" {% if current_answers[5] == '3' %} checked {% endif %}>Good</label> |
|
|
<label><input type="radio" name="q6" value="2" {% if current_answers[5] == '2' %} checked {% endif %}>Average</label> |
|
|
<label><input type="radio" name="q6" value="1" {% if current_answers[5] == '1' %} checked {% endif %}>Bad</label> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="choice_box" style="position:fixed; top: 63%; right:31%;"> |
|
|
7. overall score |
|
|
<label><input type="radio" name="q7" value="3" {% if current_answers[6] == '3' %} checked {% endif %}>Good</label> |
|
|
<label><input type="radio" name="q7" value="2" {% if current_answers[6] == '2' %} checked {% endif %}>Average</label> |
|
|
<label><input type="radio" name="q7" value="1" {% if current_answers[6] == '1' %} checked {% endif %}>Bad</label> |
|
|
</div> |
|
|
|
|
|
<br> |
|
|
<button type="submit" class="button_submit">Submit</button> |
|
|
<br> |
|
|
<br> |
|
|
</form> |
|
|
|
|
|
</body> |
|
|
</html> |
|
|
|
|
|
|
|
|
|