forked from facebookresearch/Mask2Former
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_cluster2.sh
27 lines (25 loc) · 1.2 KB
/
train_cluster2.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
export DETECTRON2_DATASETS=/data-fsx/xiaofeng/sg-mllm
TOTAL_BATCH_SIZE=64 # 4 nodes * 8 gpus * 2 img/gpu
EXP_NAME=swinl-all_data-q200+50+50-res1024-15ep-bs64-polylr-nosem
python train_net_plus.py \
--machine-rank $NODE_RANK \
--num-machines $NUM_NODES \
--dist-url "tcp://$MASTER_ADDR:$MASTER_PORT" \
--num-gpus 8 \
--config-file weights/coco_panoptic_swinl_100ep/config.yaml \
OUTPUT_DIR runs/$EXP_NAME \
WANDB.NAME $EXP_NAME \
MODEL.WEIGHTS weights/coco_panoptic_swinl_100ep/model_final.pkl \
DATASETS.TRAIN "('coco_lvis_no_part_train', 'coco_lvis_paco_part_train', 'ppp_train', 'ppp_val', 'entity_train_lr_with_cls', 'entity_train_lr_no_cls', 'textocr_train', 'mhp_train')" \
SOLVER.IMS_PER_BATCH $TOTAL_BATCH_SIZE \
SOLVER.BASE_LR 1e-4 \
INPUT.IMAGE_SIZE 1024 \
MODEL.META_ARCHITECTURE MaskFormerPlusNoSem \
MODEL.MASK_FORMER.TRANSFORMER_DECODER_NAME MultiScaleMaskedTransformerDecoderPlus \
MODEL.MASK_FORMER.NUM_OBJECT_QUERIES 200 \
MODEL.MASK_FORMER.NUM_PART_QUERIES 50 \
MODEL.MASK_FORMER.NUM_TEXT_QUERIES 50 \
SOLVER.MAX_ITER 50000 \
SOLVER.LR_SCHEDULER_NAME WarmupPolyLR \
TEST.EVAL_PERIOD 100000000 \
MODEL.MASK_FORMER.CLASS_WEIGHT 0.0