peterw2333 commited on
Commit
9b94103
·
1 Parent(s): 8c4838c

fixed code and prompt

Browse files
Files changed (3) hide show
  1. app.py +4 -4
  2. videos/.DS_Store +0 -0
  3. 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]['ic'], video_dict[video_id]['t2']]
37
  else:
38
- video_list = [video_dict[video_id]['t2'], video_dict[video_id]['ic']]
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': "ic" if "ic" in video_dict[video_id][response[0]][0] else "t2",
101
- 'quality': "ic" if "ic" in video_dict[video_id][response[1]][0] else "t2",
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 crosses their arms and turns away in dismissal.",
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 their arm for a handshake, the other meets it halfway with a firm grip, both elbows slightly bent.",
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 around the other's shoulder in a gesture of companionship.",
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 in a gesture of respect or submission.",
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 counters with defensive movements.",
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 and responds with their own attack.",
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 playfully in a friendly interaction.",
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 in a tender moment.",
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 mirror-like choreographed movements, synchronized and graceful.",
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 in a sudden gesture of deference or respect.",
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
  ],