You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python3 zeroshot_cls.py --dataset "evaluation dataset, such as CIFAR10" \
--data_path "PATH/TO/THE/DATASET" \
--model "which model to evaluate, see OpenCLIP" \
--pretrained "specific weight, see OpenCLIP" \
--threat_model "linf_non_targeted" \
--attacker_name "which attacker to use"
Image-text retrieval with OpenCLIP models
python3 eval_retrieval.py --model "which model to evaluate, see OpenCLIP"\
--pretrained "specific weight, see OpenCLIP" \
--threat_model "linf_non_targeted" \
--attacker_name "which attacker to use"
Zero-shot classification with ALIGN
python3 zeroshot_cls.py --dataset "evaluation dataset, such as CIFAR10" \
--data_path "PATH/TO/THE/DATASET" \
--threat_model "linf_non_targeted" \
--attacker_name "which attacker to use"
Evaluate with VLMs
Ensure that all dependencies are satisfied. The default is requirements.txt, but BLIP-2, LLaVA, and MiniGPT-4 may require different versions.
Review the script-specific arguments for evaluation: