yjh0410 пре 1 година
родитељ
комит
1f6fce2f7c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      yolo/train.sh

+ 1 - 1
yolo/train.sh

@@ -10,7 +10,7 @@ RESUME=$7
 
 # -------------------------- Train Pipeline --------------------------
 if [[ $WORLD_SIZE == 1 ]]; then
-    python train.py \
+    python -m torch.distributed.run --nproc_per_node=${WORLD_SIZE} --master_port ${MASTER_PORT} train.py \
             --cuda \
             --dataset ${DATASET} \
             --root ${DATASET_ROOT} \