浏览代码

add train_ddp.sh file

yjh0410 2 年之前
父节点
当前提交
4e4666f514
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      train_ddp.sh

+ 15 - 0
train_ddp.sh

@@ -0,0 +1,15 @@
+# 8 GPUs
+python -m torch.distributed.run --nproc_per_node=8 train.py \
+                                                    --cuda \
+                                                    -dist \
+                                                    -d coco \
+                                                    --root /data/datasets/ \
+                                                    -m yolov1 \
+                                                    -bs 128 \
+                                                    -size 640 \
+                                                    --wp_epoch 1 \
+                                                    --max_epoch 150 \
+                                                    --eval_epoch 10 \
+                                                    --ema \
+                                                    --fp16 \
+                                                    --multi_scale \