Skip to content

Commit d4be265

Browse files
committed
Update training code
1 parent 45b9b63 commit d4be265

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

dist_test.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
CONFIG=$1
4+
CHECKPOINT=$2
5+
GPUS=$3
6+
PORT=${PORT:-29500}
7+
8+
PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \
9+
python -m torch.distributed.launch --nproc_per_node=$GPUS --master_port=$PORT \
10+
det6/test.py $CONFIG $CHECKPOINT --launcher pytorch ${@:4}

dist_train.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CONFIG=$1
2+
GPUS=$2
3+
PORT=${PORT:-29500}
4+
5+
PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \
6+
python -m torch.distributed.launch --nproc_per_node=$GPUS --master_port=$PORT \
7+
det6/train.py $CONFIG --launcher pytorch ${@:3}

0 commit comments

Comments
 (0)