peterw2333 commited on
Commit ·
9b94103
1
Parent(s): 8c4838c
fixed code and prompt
Browse files- app.py +4 -4
- videos/.DS_Store +0 -0
- videos/rir.json +10 -10
app.py
CHANGED
|
@@ -33,9 +33,9 @@ def prepare_test_cases():
|
|
| 33 |
video_ids = list(video_dict.keys())
|
| 34 |
for video_id in video_ids:
|
| 35 |
if random.random() > 0.5:
|
| 36 |
-
video_list = [video_dict[video_id]['
|
| 37 |
else:
|
| 38 |
-
video_list = [video_dict[video_id]['
|
| 39 |
|
| 40 |
random.shuffle(video_list)
|
| 41 |
|
|
@@ -97,8 +97,8 @@ def save_responses(unique_submission, *responses):
|
|
| 97 |
pair_response = {
|
| 98 |
video_id: {
|
| 99 |
# 'diversity': "before" if "before" in video_dict[video_id][response[0]][0] else "after",
|
| 100 |
-
'accuracy': "
|
| 101 |
-
'quality': "
|
| 102 |
}
|
| 103 |
}
|
| 104 |
result["responses"].append(pair_response)
|
|
|
|
| 33 |
video_ids = list(video_dict.keys())
|
| 34 |
for video_id in video_ids:
|
| 35 |
if random.random() > 0.5:
|
| 36 |
+
video_list = [video_dict[video_id]['25k'], video_dict[video_id]['50k']]
|
| 37 |
else:
|
| 38 |
+
video_list = [video_dict[video_id]['50k'], video_dict[video_id]['25k']]
|
| 39 |
|
| 40 |
random.shuffle(video_list)
|
| 41 |
|
|
|
|
| 97 |
pair_response = {
|
| 98 |
video_id: {
|
| 99 |
# 'diversity': "before" if "before" in video_dict[video_id][response[0]][0] else "after",
|
| 100 |
+
'accuracy': "25k" if "25k" in video_dict[video_id][response[0]][0] else "50k",
|
| 101 |
+
'quality': "25k" if "25k" in video_dict[video_id][response[1]][0] else "50k",
|
| 102 |
}
|
| 103 |
}
|
| 104 |
result["responses"].append(pair_response)
|
videos/.DS_Store
CHANGED
|
Binary files a/videos/.DS_Store and b/videos/.DS_Store differ
|
|
|
videos/rir.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"syn_000030": {
|
| 3 |
-
"prompt": "one person extends a hesitant hand in apology, but the other person
|
| 4 |
"25k": [
|
| 5 |
"videos/25k/cropped_syn_000030#one person steps forward aggressively_before.mp4"
|
| 6 |
],
|
|
@@ -9,7 +9,7 @@
|
|
| 9 |
]
|
| 10 |
},
|
| 11 |
"syn_000100": {
|
| 12 |
-
"prompt": "one person extends
|
| 13 |
"25k": [
|
| 14 |
"videos/25k/cropped_syn_000100#one person extends a hand to help the_before.mp4"
|
| 15 |
],
|
|
@@ -18,7 +18,7 @@
|
|
| 18 |
]
|
| 19 |
},
|
| 20 |
"syn_000300": {
|
| 21 |
-
"prompt": "the two stand side by side, one's arm
|
| 22 |
"25k": [
|
| 23 |
"videos/25k/cropped_syn_000300#the two stand side by side, one's arm_before.mp4"
|
| 24 |
],
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
]
|
| 28 |
},
|
| 29 |
"syn_000310": {
|
| 30 |
-
"prompt": "one person drops to their knees, bowing deeply
|
| 31 |
"25k": [
|
| 32 |
"videos/25k/cropped_syn_000310#one person drops to their knees, bowi_before.mp4"
|
| 33 |
],
|
|
@@ -36,7 +36,7 @@
|
|
| 36 |
]
|
| 37 |
},
|
| 38 |
"syn_000540": {
|
| 39 |
-
"prompt": "one throws a left kick, but the other blocks and
|
| 40 |
"25k": [
|
| 41 |
"videos/25k/cropped_syn_000540#one throws a left kick, but the other_before.mp4"
|
| 42 |
],
|
|
@@ -45,7 +45,7 @@
|
|
| 45 |
]
|
| 46 |
},
|
| 47 |
"syn_000980": {
|
| 48 |
-
"prompt": "one thrusts a practice sword, and the other parries
|
| 49 |
"25k": [
|
| 50 |
"videos/25k/cropped_syn_000980#one thrusts a practice sword, and the_before.mp4"
|
| 51 |
],
|
|
@@ -54,7 +54,7 @@
|
|
| 54 |
]
|
| 55 |
},
|
| 56 |
"syn_001150": {
|
| 57 |
-
"prompt": "one person squats low, teasing the other
|
| 58 |
"25k": [
|
| 59 |
"videos/25k/cropped_syn_001150#one person squats low, teasing the ot_before.mp4"
|
| 60 |
],
|
|
@@ -63,7 +63,7 @@
|
|
| 63 |
]
|
| 64 |
},
|
| 65 |
"syn_001240": {
|
| 66 |
-
"prompt": "the two embrace tightly, one resting their head on the other's shoulder
|
| 67 |
"25k": [
|
| 68 |
"videos/25k/cropped_syn_001240#the two embrace tightly, one resting _before.mp4"
|
| 69 |
],
|
|
@@ -72,7 +72,7 @@
|
|
| 72 |
]
|
| 73 |
},
|
| 74 |
"syn_002780": {
|
| 75 |
-
"prompt": "their legs cross and uncross in
|
| 76 |
"25k": [
|
| 77 |
"videos/25k/cropped_syn_002780#their legs cross and uncross in mirro_before.mp4"
|
| 78 |
],
|
|
@@ -81,7 +81,7 @@
|
|
| 81 |
]
|
| 82 |
},
|
| 83 |
"syn_002890": {
|
| 84 |
-
"prompt": "one person kneels abruptly, head bowed
|
| 85 |
"25k": [
|
| 86 |
"videos/25k/cropped_syn_002890#one person kneels abruptly, head bowe_before.mp4"
|
| 87 |
],
|
|
|
|
| 1 |
{
|
| 2 |
"syn_000030": {
|
| 3 |
+
"prompt": "one person extends a hesitant hand in apology, but the other person blocks their path with an outstretched arm, shaking their head in rejection",
|
| 4 |
"25k": [
|
| 5 |
"videos/25k/cropped_syn_000030#one person steps forward aggressively_before.mp4"
|
| 6 |
],
|
|
|
|
| 9 |
]
|
| 10 |
},
|
| 11 |
"syn_000100": {
|
| 12 |
+
"prompt": "one person extends a hand to help the other up from a seated position, their arms locking briefly for support",
|
| 13 |
"25k": [
|
| 14 |
"videos/25k/cropped_syn_000100#one person extends a hand to help the_before.mp4"
|
| 15 |
],
|
|
|
|
| 18 |
]
|
| 19 |
},
|
| 20 |
"syn_000300": {
|
| 21 |
+
"prompt": "the two stand side by side, one's arm draped over the other's shoulder, pulling them close",
|
| 22 |
"25k": [
|
| 23 |
"videos/25k/cropped_syn_000300#the two stand side by side, one's arm_before.mp4"
|
| 24 |
],
|
|
|
|
| 27 |
]
|
| 28 |
},
|
| 29 |
"syn_000310": {
|
| 30 |
+
"prompt": "one person drops to their knees, bowing deeply. The other stands rigid, arms folded in silent observation",
|
| 31 |
"25k": [
|
| 32 |
"videos/25k/cropped_syn_000310#one person drops to their knees, bowi_before.mp4"
|
| 33 |
],
|
|
|
|
| 36 |
]
|
| 37 |
},
|
| 38 |
"syn_000540": {
|
| 39 |
+
"prompt": "one throws a left kick, but the other blocks it with their shin and immediately strikes back with a knee to the thigh",
|
| 40 |
"25k": [
|
| 41 |
"videos/25k/cropped_syn_000540#one throws a left kick, but the other_before.mp4"
|
| 42 |
],
|
|
|
|
| 45 |
]
|
| 46 |
},
|
| 47 |
"syn_000980": {
|
| 48 |
+
"prompt": "one thrusts a practice sword, and the other parries it with a sharp clang.",
|
| 49 |
"25k": [
|
| 50 |
"videos/25k/cropped_syn_000980#one thrusts a practice sword, and the_before.mp4"
|
| 51 |
],
|
|
|
|
| 54 |
]
|
| 55 |
},
|
| 56 |
"syn_001150": {
|
| 57 |
+
"prompt": "one person squats low, teasing the other to leap over their back like a hurdle.",
|
| 58 |
"25k": [
|
| 59 |
"videos/25k/cropped_syn_001150#one person squats low, teasing the ot_before.mp4"
|
| 60 |
],
|
|
|
|
| 63 |
]
|
| 64 |
},
|
| 65 |
"syn_001240": {
|
| 66 |
+
"prompt": "the two embrace tightly, one resting their head on the other's shoulder.",
|
| 67 |
"25k": [
|
| 68 |
"videos/25k/cropped_syn_001240#the two embrace tightly, one resting _before.mp4"
|
| 69 |
],
|
|
|
|
| 72 |
]
|
| 73 |
},
|
| 74 |
"syn_002780": {
|
| 75 |
+
"prompt": "their legs cross and uncross in mirrored steps, arms outstretched as if tracing invisible patterns in the air between them.",
|
| 76 |
"25k": [
|
| 77 |
"videos/25k/cropped_syn_002780#their legs cross and uncross in mirro_before.mp4"
|
| 78 |
],
|
|
|
|
| 81 |
]
|
| 82 |
},
|
| 83 |
"syn_002890": {
|
| 84 |
+
"prompt": "one person kneels abruptly, head bowed, while the other extends a hand to help them rise.",
|
| 85 |
"25k": [
|
| 86 |
"videos/25k/cropped_syn_002890#one person kneels abruptly, head bowe_before.mp4"
|
| 87 |
],
|