v6: code
Browse files- code/prompt.md +21 -12
code/prompt.md
CHANGED
|
@@ -1,22 +1,31 @@
|
|
| 1 |
-
# Protocols (identical to the
|
| 2 |
|
| 3 |
-
## VIDEO
|
| 4 |
-
Frames: one frame per second of the timeline, at most 512 frames per item (uniform
|
| 5 |
-
|
| 6 |
-
rejects the request the frame count is halved and the request
|
|
|
|
| 7 |
|
| 8 |
Prompt (frames first, then the text):
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
Question: {question}
|
| 11 |
-
Options:
|
| 12 |
A. ...
|
| 13 |
B. ...
|
| 14 |
-
|
| 15 |
|
| 16 |
## BLIND
|
| 17 |
-
Question and options only, no frames; four option permutations per item
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
## Scoring
|
| 21 |
-
|
| 22 |
-
whose text the reply repeats; a reply that names no option is wrong. Gain = VIDEO - BLIND on the same items.
|
|
|
|
| 1 |
+
# Protocols (identical to the runs of the paper; code: https://github.com/Espere-1119-Song/Video-Index)
|
| 2 |
|
| 3 |
+
## VIDEO
|
| 4 |
+
Frames: one frame per second of the timeline, at most 512 frames per item (uniform thinning beyond; the videos are
|
| 5 |
+
stored at no more than 2 frames per second and 1,024 frames), each frame resized to short side 224. When a model
|
| 6 |
+
rejects the request for its size the frame count is halved and the request repeated; the number of frames sent is
|
| 7 |
+
recorded per item.
|
| 8 |
|
| 9 |
Prompt (frames first, then the text):
|
| 10 |
+
|
| 11 |
+
You are given {n} frame(s) sampled from a video. Answer the question based on these frames.
|
| 12 |
+
|
| 13 |
Question: {question}
|
|
|
|
| 14 |
A. ...
|
| 15 |
B. ...
|
| 16 |
+
Reply with ONLY the option letter (or the exact short answer if no options).
|
| 17 |
|
| 18 |
## BLIND
|
| 19 |
+
Question and options only, no frames; four option permutations per item, fixed by
|
| 20 |
+
random.Random("42|<item_id>").sample(range(k), k); the blind score is the mean over the four permutations.
|
| 21 |
+
|
| 22 |
+
You are given NO frames from the video. Answer the question from the text alone.
|
| 23 |
+
|
| 24 |
+
Question: {question}
|
| 25 |
+
A. ...
|
| 26 |
+
B. ...
|
| 27 |
+
Reply with ONLY the option letter (or the exact short answer if no options).
|
| 28 |
|
| 29 |
## Scoring
|
| 30 |
+
Rule scorer (video_index/scoring.py): the leading option letter of the reply, a stated answer ("the answer is B"),
|
| 31 |
+
or the option whose text the reply repeats; a reply that names no option is wrong. Gain = VIDEO - BLIND on the same items.
|