Skip to content

Commit

Permalink
update eval script
Browse files Browse the repository at this point in the history
  • Loading branch information
rayguan97 committed Nov 13, 2023
1 parent 2b079a1 commit ad2a3e0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions gpt4v_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,25 @@
### to evaluate your method, implement and run generate_answer function!

root_dir = "."
llava = False
# llava = True
# load_json = False
load_json = True
input_file_name = "HallusionBench.tsv"

save_json_path_vd = "./hallusion_output_vd.json"
# save_json_path_vd = "./hallusion_output_vd_llava.json"
save_json_path_vs = "./hallusion_output_vs.json"
# save_json_path_vs = "./hallusion_output_vs_llava.json"
# load_json = False
load_json = True
model_output_entry = "gpt4v_output"
# model_output_entry = "llava_1_5_output"
model_correctness_entry = "gpt4v_output_gpt_check"
# model_correctness_entry = "llava_1_5_output_gpt_check"
model_correctness_entry_human = "gpt4v_output_human_check"
# model_correctness_entry_human = "llava_1_5_output_human_check"

if llava:
save_json_path_vd = "./hallusion_output_vd_llava.json"
save_json_path_vs = "./hallusion_output_vs_llava.json"
model_output_entry = "llava_1_5_output"
model_correctness_entry = "llava_1_5_output_gpt_check"
model_correctness_entry_human = "llava_1_5_output_human_check"


col_idx = {
'category':0,
Expand Down

0 comments on commit ad2a3e0

Please sign in to comment.