-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvit_s_medical_mae_cxr14.sh
31 lines (30 loc) · 1.05 KB
/
vit_s_medical_mae_cxr14.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
28
29
30
31
DATASET_DIR='datasets/cxr14'
# CKPT_DIR='pretrained/vit-s_CXR_0.3M_mae.pth'
CKPT_DIR='pretrained/vit-s_CXR_0.3M_mae.pth'
SAVE_DIR='./output/cxr14/vit_s_medical_mae_cxr14'
TRAIN_LIST='datasets/data_splits/cxr14/train_official.txt'
VAL_LIST='datasets/data_splits/cxr14/val_official.txt' # not used
TEST_LIST='datasets/data_splits/cxr14/test_official.txt'
OMP_NUM_THREADS=1 python -m torch.distributed.launch \
--nproc_per_node=4 \
--use_env train.py \
--output_dir ${SAVE_DIR} \
--log_dir ${SAVE_DIR} \
--batch_size 256 \
--finetune ${CKPT_DIR} \
--epochs 75 \
--blr 2.5e-4 --layer_decay 0.55 --weight_decay 0.05 \
--model vit_small_patch16 \
--warmup_epochs 5 \
--drop_path 0.2 --mixup 0 --cutmix 0 --reprob 0 --vit_dropout_rate 0 \
--data_path ${DATASET_DIR} \
--num_workers 4 \
--train_list ${TRAIN_LIST} \
--val_list ${VAL_LIST} \
--test_list ${TEST_LIST} \
--nb_classes 14 \
--eval_interval 10 \
--min_lr 1e-5 \
--build_timm_transform \
--aa 'rand-m6-mstd0.5-inc1' \
--eval