瀏覽代碼

fix a bug in RandomIoUCrop

yjh0410 1 年之前
父節點
當前提交
c6bf63a14c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 \