Skip to content

Commit

Permalink
Update script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ggjy authored Apr 21, 2021
1 parent a4bdd9e commit c46a793
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# VOC: train ResNet-50 based Faster RCNN
python -m torch.distributed.launch --nproc_per_node=1 tools/train.py --gpus 1 --launcher pytorch --validate --work-dir /tmp/coco_output/kd/r50/ --config configs/faster_rcnn/voc_faster_rcnn_r50.py
python -m torch.distributed.launch --nproc_per_node=2 tools/train.py --gpus 2 --launcher pytorch --validate --work-dir /tmp/coco_output/kd/r50/ --config configs/faster_rcnn/voc_faster_rcnn_r50.py

# VOC: train ResNet-101 based Faster RCNN
python -m torch.distributed.launch --nproc_per_node=1 tools/train.py --gpus 1 --launcher pytorch --validate --work-dir /tmp/coco_output/kd/r101/ --config configs/faster_rcnn/voc_faster_rcnn_r101.py
python -m torch.distributed.launch --nproc_per_node=2 tools/train.py --gpus 2 --launcher pytorch --validate --work-dir /tmp/coco_output/kd/r101/ --config configs/faster_rcnn/voc_faster_rcnn_r101.py

# KD FGFI: train student
python -m torch.distributed.launch --nproc_per_node=1 tools/train_kd.py --gpus 1 --launcher pytorch --validate --work-dir /tmp/coco_output/kd/r101-50-FGFI/ --config configs/kd_faster_rcnn/voc_stu_faster_rcnn_r50_FGFI.py --config-t configs/kd_faster_rcnn/voc_tea_faster_rcnn_r101.py --checkpoint-t /tmp/coco_output/voc_bn_r101_8x2_lr0.02/epoch_4.pth
python -m torch.distributed.launch --nproc_per_node=2 tools/train_kd.py --gpus 2 --launcher pytorch --validate --work-dir /tmp/coco_output/kd/r101-50-FGFI/ --config configs/kd_faster_rcnn/voc_stu_faster_rcnn_r50_FGFI.py --config-t configs/kd_faster_rcnn/voc_tea_faster_rcnn_r101.py --checkpoint-t /tmp/coco_output/voc_bn_r101_8x2_lr0.02/epoch_4.pth

# KD DeFeat: train student
To be added.
python -m torch.distributed.launch --nproc_per_node=2 tools/train_kd.py --gpus 2 --launcher pytorch --validate --work-dir /tmp/coco_output/kd/r101-50-DeFeat/ --config configs/kd_faster_rcnn/voc_stu_faster_rcnn_r50_decouple_neck.py --config-t configs/kd_faster_rcnn/voc_tea_faster_rcnn_r101.py --checkpoint-t /tmp/coco_output/voc_bn_r101_8x2_lr0.02/epoch_4.pth

0 comments on commit c46a793

Please sign in to comment.