Skip to content

Commit 9491494

Browse files
author
Ye Shaokai
committed
updates
1 parent d3bf3e6 commit 9491494

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

llava/action/benchmark.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
n_frames = 16
1818
topk = 5
1919
action_representation = 'GT_random_narration'
20-
gpt_model = 'gpt-4o-mini-2024-07-18'
21-
#gpt_model = 'gpt-4o-2024-08-06'
2220
perspective = 'first_person'
2321
benchmark_testing = True
2422

@@ -71,6 +69,10 @@ def benchmark_random_mcq(n_samples, gpt_model):
7169

7270

7371
if __name__ == '__main__':
74-
benchmark_avion_mcq(-1)
75-
benchmark_tim_mcq(-1)
76-
benchmark_random_mcq(-1)
72+
benchmark_avion_mcq(-1, 'gpt-4o-mini-2024-07-18')
73+
benchmark_tim_mcq(-1, 'gpt-4o-mini-2024-07-18')
74+
benchmark_random_mcq(-1, 'gpt-4o-mini-2024-07-18')
75+
benchmark_avion_mcq(-1, 'gpt-4o-2024-08-06')
76+
benchmark_tim_mcq(-1, 'gpt-4o-2024-08-06')
77+
benchmark_random_mcq(-1, 'gpt-4o-2024-08-06')
78+

llava/action/chatgpt_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ def multi_process_run(self, offset= 0, n_samples = -1, disable_api_calling = Fal
462462

463463
if n_samples != -1:
464464
indices = list(range(len(self.data)))[offset:offset + n_samples]
465+
else:
466+
indices = list(range(len(self.data)))
465467
num_chunks = os.cpu_count() if not self.debug else 2
466468

467469
indices_groups = self.split_indices(indices, num_chunks)

0 commit comments

Comments
 (0)