AdaCLIP / test_single_image.sh
Caoyunkang's picture
first commit
a25563f verified
raw
history blame contribute delete
279 Bytes
ckt_path="weights/pretrained_all.pth"
gpu_id=0
# demo: do zero-shot anomaly detection for a single image
CUDA_VISIBLE_DEVICES=$gpu_id python test.py --testing_model image --ckt_path $ckt_path --save_fig True \
--image_path asset/img.png --class_name candle --save_name test.png