-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
35 lines (29 loc) · 680 Bytes
/
Copy pathrun.sh
File metadata and controls
35 lines (29 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
export DETECTRON2_DATASETS=../OV_seg
config=$1
gpus=$2
output=$3
if [ -z $config ]
then
echo "No config file found! Run with "sh eval.sh [CONFIG_FILE] [NUM_GPUS] [OUTPUT_DIR] [OPTS]""
exit 0
fi
if [ -z $gpus ]
then
echo "Number of gpus not specified! Run with "sh eval.sh [CONFIG_FILE] [NUM_GPUS] [OUTPUT_DIR] [OPTS]""
exit 0
fi
if [ -z $output ]
then
echo "No output directory found! Run with "sh eval.sh [CONFIG_FILE] [NUM_GPUS] [OUTPUT_DIR] [OPTS]""
exit 0
fi
shift 3
opts=${@}
python train_net.py --config $config \
--num-gpus $gpus \
--dist-url "auto" \
--resume \
OUTPUT_DIR $output \
$opts
sh eval.sh $config $gpus $output $opts