Skip to content

Commit

Permalink
Update main_task_retrieval.py
Browse files Browse the repository at this point in the history
FIX Bug microsoft#27
  • Loading branch information
hemanthkumar17 authored Mar 22, 2023
1 parent 8db88f3 commit ba3e7fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_task_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ def eval_epoch(args, model, test_dataloader, device, n_gpu):
sim_matrix = np.concatenate(tuple(sim_matrix), axis=0)
else:
sim_matrix = _run_on_single_gpu(model, batch_list, batch_list, batch_sequence_output_list, batch_visual_output_list)
sim_matrix = np.concatenate(tuple(sim_matrix), axis=0)

metrics = compute_metrics(sim_matrix)
logger.info('\t Length-T: {}, Length-V:{}'.format(len(sim_matrix), len(sim_matrix[0])))
Expand Down Expand Up @@ -512,4 +513,4 @@ def main():
eval_epoch(args, model, test_dataloader, device, n_gpu)

if __name__ == "__main__":
main()
main()

0 comments on commit ba3e7fa

Please sign in to comment.