File size: 8,308 Bytes
52a8aa9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | <!DOCTYPE html>
<html>
<head>
<title>视频标注页</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="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>文本提示词</b>: <br>{{text_prompt}}</p>
<div class = "current_progress">
<p><b>未标注或答案不完整的<br>最靠前的视频 </b>: <br>{{ unanswered_least_idx+1 }} <br></p>
<p><b>当前进度</b>:<br>{{ current_idx+1 }}/{{end_index+1 }} <br></p>
<br>
<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 }}">
转到: <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"> 确定</button>
<br>
</form>
</div>
<div style="position:fixed; bottom: 2%; right:1%;">
{% if vid_name in answered_vid_list %}
<p class="answered">已标注 <br></p>
<div class="table_style">
("3": 好, "2": 一般, "1": 差,"-1":有问题已反馈)<br>
<table style="text-align: left;font-size: 13px;">
<tr><td>观感质量</td> <td>{{ current_answers[0] }}</td>
<td>物体一致性</td> <td>{{ current_answers[1] }}</td></tr>
<tr><td>动态程度</td> <td>{{ current_answers[2] }}</td>
<td>运动流畅度</td> <td>{{ current_answers[3] }}</td></tr>
<tr><td>符合文本提示词</td> <td>{{ current_answers[4] }}</td>
<td>符合事实逻辑</td> <td>{{ current_answers[5] }}</td></tr>
<tr><td>整体得分</td> <td>{{ current_answers[6] }}</td></tr>
</table>
</div>
{% else %}
<p class="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" >反馈问题</button>
</form>
(如果您认为该文本提示词表达不清楚,或包含有害内容,
或视频无法加载,或视频包含有害内容,
可以点击上面的按钮报告问题并跳过该视频。)
</div>
<br>
<div class="QA-text">
<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" >上一个</button>
<button type="submit" name="direction" class="button_last_next" value="next" >下一个</button>
</form>
(您可以点击“上一个”按钮来查看您的答案。)
</div>
<br>
<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">退出</button>
</form>
(如果需要查看欢迎页面上每个小分的定义和示例,可以随时退出,进度会被保存。)<br>
</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: 5%; right:31%;">
1. visual quality
<label><input type="radio" name="q1" value="3" {% if current_answers[0] == '3' %} checked {% endif %}>好</label>
<label><input type="radio" name="q1" value="2" {% if current_answers[0] == '2' %} checked {% endif %}>一般</label>
<label><input type="radio" name="q1" value="1" {% if current_answers[0] == '1' %} checked {% endif %}>差</label>
</div>
<div class="choice_box" style="position:fixed; top: 15%; right:31%;">
2. object consistency
<label><input type="radio" name="q2" value="3" {% if current_answers[1] == '3' %} checked {% endif %}>好</label>
<label><input type="radio" name="q2" value="2" {% if current_answers[1] == '2' %} checked {% endif %}>一般</label>
<label><input type="radio" name="q2" value="1" {% if current_answers[1] == '1' %} checked {% endif %}>差</label>
</div>
<div class="choice_box" style="position:fixed; top: 25%; right:31%;">
3. dynamic degree
<label><input type="radio" name="q3" value="3" {% if current_answers[2] == '3' %} checked {% endif %}>好</label>
<label><input type="radio" name="q3" value="2" {% if current_answers[2] == '2' %} checked {% endif %}>一般</label>
<label><input type="radio" name="q3" value="1" {% if current_answers[2] == '1' %} checked {% endif %}>差</label>
</div>
<div class="choice_box" style="position:fixed; top: 35%; right:31%;">
4. motion smooth
<label><input type="radio" name="q4" value="3" {% if current_answers[3] == '3' %} checked {% endif %}>好</label>
<label><input type="radio" name="q4" value="2" {% if current_answers[3] == '2' %} checked {% endif %}>一般</label>
<label><input type="radio" name="q4" value="1" {% if current_answers[3] == '1' %} checked {% endif %}>差</label>
</div>
<div class="choice_box" style="position:fixed; top: 45%; right:31%;">
5. text alignment
<label><input type="radio" name="q5" value="3" {% if current_answers[4] == '3' %} checked {% endif %}>好</label>
<label><input type="radio" name="q5" value="2" {% if current_answers[4] == '2' %} checked {% endif %}>一般</label>
<label><input type="radio" name="q5" value="1" {% if current_answers[4] == '1' %} checked {% endif %}>差</label>
</div>
<div class="choice_box" style="position:fixed; top: 55%; right:31%;">
6. fact consistency
<label><input type="radio" name="q6" value="3" {% if current_answers[5] == '3' %} checked {% endif %}>好</label>
<label><input type="radio" name="q6" value="2" {% if current_answers[5] == '2' %} checked {% endif %}>一般</label>
<label><input type="radio" name="q6" value="1" {% if current_answers[5] == '1' %} checked {% endif %}>差</label>
</div>
<div class="choice_box" style="position:fixed; top: 65%; right:31%;">
7. overall score
<label><input type="radio" name="q7" value="3" {% if current_answers[6] == '3' %} checked {% endif %}>好</label>
<label><input type="radio" name="q7" value="2" {% if current_answers[6] == '2' %} checked {% endif %}>一般</label>
<label><input type="radio" name="q7" value="1" {% if current_answers[6] == '1' %} checked {% endif %}>差</label>
</div>
<br>
<button type="submit" class="button_submit">提交</button>
<br>
<br>
</form>
</body>
</html>
|