-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
40 lines (32 loc) · 785 Bytes
/
run.sh
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
36
37
38
39
40
#!/bin/sh
config=$1
gpus=$2
output=$3
export DETECTRON2_DATASETS="/four_tb/ADITYA/CAT-Seg/datasets"
# gpu_ids="1" # coop
# # gpu_ids="0"
# export CUDA_VISIBLE_DEVICES=$gpu_ids
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