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
Copy file name to clipboardExpand all lines: action/llava_ov_inference.py
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -83,8 +83,9 @@ def llava_video_process(
83
83
video_duration=time_meta['duration'].item()
84
84
n_frames=time_meta['n_frames'].item()
85
85
frame_time=time_meta['frame_time']
86
-
frame_time= [e[0] foreinframe_time]
87
-
time_instruciton=f"The video lasts for {video_duration:.2f} seconds, and {n_frames} frames are uniformly sampled from it. These frames are located at {frame_time}.Please answer the following questions related to this video."
86
+
print ('frame time', frame_time)
87
+
frame_time=frame_time[0]
88
+
time_instruciton=f"You are seeing a video taken from egocentric view. The video lasts for {video_duration:.2f} seconds, and {n_frames} frames are uniformly sampled from it. What is the person doing? Format your answer letter. verb noun such as A. move knife."
time_instruciton=f"The video lasts for {video_time:.2f} seconds, and {num_frames_to_sample} frames are uniformly sampled from it. These frames are located at {frame_time}.Please answer the following questions related to this video."
1235
+
time_instruciton=f"The video lasts for {video_time:.2f} seconds, and {num_frames_to_sample} frames are uniformly sampled from it. Please answer the following questions related to this video."
0 commit comments