-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_adapter.sh
21 lines (21 loc) · 912 Bytes
/
train_adapter.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CUDA_VISIBLE_DEVICES=0,1 mpirun --cpu-set 0-12 --bind-to core -n 2 python entry.py train \
--conf_files configs/seem/focall_unicl_lang_v1.yaml \
--overrides \
WEIGHT seem_focall_v1.pt \
MODEL.ENCODER.NUM_CLASSES <<NUM CLASSES>> \
TEST.BATCH_SIZE_TOTAL 4 \
TRAIN.BATCH_SIZE_TOTAL 4 \
TRAIN.BATCH_SIZE_PER_GPU 2 \
DATASETS.TRAIN "['<<DATASET NAME TRAIN>>']" \
DATASETS.TEST "['<<DATASET NAME VAL>>']" \
INPUT.PIXEL_MEAN "[92.2797, 154.551, 153.192]" \
INPUT.PIXEL_STD "[67.1433, 39.6286, 41.3266]" \
SOLVER.MAX_NUM_EPOCHS <<NUM EPOCHS>> \
SOLVER.BASE_LR 0.001 \
SOLVER.STEPS "[0.88889, 0.96296]" \
SOLVER.IGNORE_FIX "['class_embed', 'mask_embed']" \
USE_ADAPTERS True \
ADAPTER_NUM <<NUMBER OF ADAPTERS>> \
ADAPTER_DOWNSCALE_FACTOR <<DOWNSCALE FACTOR>> \
WANDB True \ # FILL OUT .env FIRST!
WANDB_EXP_NAME "<<WANDB EXPERIMENT NAME>>"