You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# this means it's training time and we are learning the prior actions
243
+
prefix=f"{perspective_prefix}\n"
244
+
assertisinstance(question, list)
245
+
suffix=", ".join(question)
246
+
prev2_narration=meta_data['prev2_narration']
247
+
prev2_offset=meta_data['prev2_offset']
248
+
prev1_narration=meta_data['prev1_narration']
249
+
prev1_offset=meta_data['prev1_offset']
250
+
cur_narration=meta_data['cur_narration']
251
+
suffix=f"{prev2_offset} seconds ago, you started an action {prev2_narration}. {prev1_offset} seconds ago, you started an action {prev1_narration}. What action are you currently performing? Here are the options of actions you can select:\n"+suffix
ret=f"{perspective_prefix} Describe in details what you see from the video frames. You must talk in the first person perspective. Try to focus on what you are doing. "
267
-
268
-
elifquestion_type=="triple_direct_answer":
269
-
assertmeta_data
270
-
duration1=meta_data[0]['duration']
271
-
duration2=meta_data[1]['duration']
272
-
duration3=meta_data[2]['duration']
273
-
prompt=f"The video consists of 3 sequential actions. What are the actions? Format your answer as action1, action2, action3."
274
-
ret=f"{perspective_prefix}{prompt}"
275
-
276
-
277
-
elifquestion_type=="validation":
278
-
ret=f"Ask yourself questions to validate your notes."
280
+
279
281
280
282
elifquestion_type=="gpt-gt-strong-reason":
281
283
ret=f"{perspective_prefix} Describe in details what you see and answer the multi-choice question. Explain why wrong answers are wrong and why the correct answer is correct. "
0 commit comments