Parcourir la source

fix a bug in RandomIoUCrop

yjh0410 il y a 1 an
Parent
commit
c6bf63a14c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      train.sh

+ 1 - 1
train.sh

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