Explorar o código

fix a bug in RandomIoUCrop

yjh0410 hai 1 ano
pai
achega
c6bf63a14c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 \