forked from NVlabs/VILA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated VILA-benchmark with better scripts (NVlabs#123)
* Add files via upload * Add files via upload * Add files via upload * Rename eval_benchmark_1_correctness.py to eval_benchmark_correctness.py * Rename eval_benchmark_2_detailed_orientation.py to eval_benchmark_detailed_orientation.py * Rename eval_benchmark_3_context.py to eval_benchmark_context.py * Rename eval_benchmark_4_temporal.py to eval_benchmark_temporal.py * Rename eval_benchmark_5_consistency.py to eval_benchmark_consistency.py * Update eval_all.sh * Update eval_all.sh * Update eval_all.sh * Create run_vila_benchmark.sh * Update slurm_run_all.sh * Update eval_all.sh * Update eval_all.sh * Create eval_vila_benchmark_gpt4.sh * Update eval_vila_benchmark_gpt4.sh * Update eval_all.sh * Update eval_all.sh * Delete llava/eval/video/convert_pred_to_json.py * Update model_vqa_videodemo_benchmark.py * Update eval_all.sh * Update run_vila_benchmark.sh * Update slurm_run_all_sharded.sh * Update slurm_run_all.sh
- Loading branch information
1 parent
27f52b5
commit dc56404
Showing
12 changed files
with
145 additions
and
95 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
scripts/v1_5/eval/video_chatgpt/eval_vila_benchmark_gpt4.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
MODEL=$1 | ||
TYPE=$2 | ||
pred_path=$3 | ||
Video_5_Benchmark="eval_vila_benchmark" | ||
output_dir="${Video_5_Benchmark}/${MODEL}/gpt4/${TYPE}" | ||
output_json="${Video_5_Benchmark}/${MODEL}/results/${TYPE}_qa.json" | ||
|
||
mkdir -p "${Video_5_Benchmark}/${MODEL}/results/" | ||
|
||
python llava/eval/video/eval_benchmark_${TYPE}.py \ | ||
--pred_path ${pred_path} \ | ||
--output_dir ${output_dir} \ | ||
--output_json ${output_json} \ | ||
--num_tasks 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
source ~/.bashrc | ||
conda activate vila | ||
which python | ||
|
||
cd ~/workspace/VILA-Internal | ||
|
||
model_path=$1 | ||
model_name=$2 | ||
conv_mode=$3 | ||
|
||
echo vila_benchmark | ||
output_dir="./eval_output/VILA-benchmark/${model_name}" | ||
python llava/eval/video/model_vqa_videodemo_benchmark.py --model-path ${model_path} --eval_type pexels --output_dir ${output_dir} --conv-mode ${conv_mode} --temperature 0 | ||
python llava/eval/video/model_vqa_videodemo_benchmark.py --model-path ${model_path} --eval_type robotics --output_dir ${output_dir} --conv-mode ${conv_mode} --temperature 0 | ||
python llava/eval/video/model_vqa_videodemo_benchmark.py --model-path ${model_path} --eval_type av --output_dir ${output_dir} --conv-mode ${conv_mode} --temperature 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters