-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinference_classification.sh
27 lines (26 loc) · 1.11 KB
/
inference_classification.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# COSMOS models
# --model ViT-B-16
# --huggingface-model-name [cosmos_vitb16_cc3m, cosmos_vitb16_cc12m, cosmos_vitb16_yfcc15m, cosmos_vitb16_merged30m, cosmos_vitb16_pixelprose]
# --model ViT-B-32
# --huggingface-model-name [cosmos_vitb32_cc3m, cosmos_vitb32_cc12m, cosmos_vitb32_yfcc15m, cosmos_vitb32_merged30m, cosmos_vitb32_pixelprose]
torchrun --nproc_per_node 1 -m main \
--model ViT-B-16 \
--huggingface-repo-name sankim2/cosmos \
--huggingface-model-name cosmos_vitb16_merged30m.pt \
--val-data classification \
--imagenet-val /directory/to/your/imagenet/data/val_images \
--batch-size 256 \
--workers 16 \
--output-all \
--attentional-pool \
--cosmos \
# OpenCLIP models
# --model ViT-B-16 --pretrained [laion400m_e32, datacomp_xl_s13b_b90k, laion2b_s34b_b88k]
# --model ViT-B-32 --pretrained [laion400m_e32, datacomp_xl_s13b_b90k, laion2b_s34b_b79k]
torchrun --nproc_per_node 1 -m main \
--model ViT-B-16 \
--pretrained laion400m_e32 \
--val-data classification \
--imagenet-val /directory/to/your/imagenet/data/val_images \
--batch-size 256 \
--workers 16 \