train_multi_gpus.sh 1.2 KB

12345678910111213141516171819
  1. # train YOLO with 4 GPUs
  2. # 使用 4 GPU来训练YOLO
  3. python -m torch.distributed.run --nproc_per_node=8 train.py \
  4. --cuda \
  5. -dist \
  6. -d coco \
  7. --root /data/datasets/ \
  8. -m yolox_l\
  9. -bs 64 \
  10. -size 640 \
  11. --wp_epoch 3 \
  12. --max_epoch 300 \
  13. --eval_epoch 10 \
  14. --no_aug_epoch 15 \
  15. --ema \
  16. --fp16 \
  17. --sybn \
  18. --multi_scale \
  19. # --resume weights/coco/yolox_l/yolox_l_best.pth \