|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export CUDA_VISIBLE_DEVICES=${1} |
|
export PYTHONPATH=${PYTHONPATH}:`pwd`/QA-CLIP-main |
|
|
|
path=${2} |
|
dataset=${3} |
|
datapath=${path} |
|
savedir=`pwd`/save_predictions |
|
vision_model=${4} |
|
text_model=${5} |
|
resume=${6} |
|
label_file=`pwd`/label_cn.txt |
|
index=${7:-} |
|
|
|
mkdir -p ${savedir} |
|
|
|
python -u eval/zeroshot_evaluation.py \ |
|
--datapath="${datapath}" \ |
|
--label-file=${label_file} \ |
|
--save-dir=${savedir} \ |
|
--dataset=${dataset} \ |
|
--index=${index} \ |
|
--img-batch-size=64 \ |
|
--resume=${resume} \ |
|
--vision-model=${vision_model} \ |
|
--text-model=${text_model} |