hexuan21's picture
upload folder 'webpage_v2'
a50d75f verified
<!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%;">
<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>temporal consistency</td> <td>{{ current_answers[1] }}</td></tr>
<tr><td>dynamic degree</td> <td>{{ current_answers[2] }}</td>
<td>text-to-video alignment</td> <td>{{ current_answers[3] }}</td></tr>
<tr><td>factual consistency</td> <td>{{ current_answers[4] }}</td>
</table>
</div>
</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>
<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>
</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" value="last" >Last One</button>
<button type="submit" name="direction" class="button_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: 25%; 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: 35%; right:31%;">
2. temporal 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: 45%; 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: 55%; right:31%;">
4. text alignment
<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: 65%; right:31%;">
5. fact consistency
<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>
<br>
<button type="submit" class="button_submit">Submit</button>
<br>
<br>
</form>
</body>
</html>