-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy patheval.sh
42 lines (34 loc) · 1.09 KB
/
eval.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
41
# CUDA_VISIBLE_DEVICES=0,1
# config -> which model config
# continue_fpath -> the trained pth path
GPUS=2
NNODES=1
NODE_RANK=${NODE_RANK:-0}
PORT=${PORT:-29158}
MASTER_ADDR=${MASTER_ADDR:-"127.0.0.1"}
export CUDA_VISIBLE_DEVICES="0,1"
export TORCHDYNAMO_VERBOSE=1
PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \
torchrun \
--nnodes=$NNODES \
--node_rank=$NODE_RANK \
--master_addr=$MASTER_ADDR \
--nproc_per_node=$GPUS \
--master_port=$PORT \
utils/eval.py \
--config=local_configs.NYUDepthv2.DFormer_Large \
--gpus=$GPUS \
--no-sliding \
--no-compile \
--syncbn \
--mst \
--compile_mode="reduce-overhead" \
--amp \
--continue_fpath="checkpoints/trained/NYUv2_DFormer_Large.pth"
# choose the dataset and DFormer for evaluating
# NYUv2 DFormers
# --config=local_configs.NYUDepthv2.DFormer_Large/Base/Small/Tiny
# --continue_fpath=checkpoints/trained/NYUv2_DFormer_Large/Base/Small/Tiny.pth
# SUNRGBD DFormers
# --config=local_configs.SUNRGBD.DFormer_Large/Base/Small/Tiny
# --continue_fpath=checkpoints/trained/SUNRGBD_DFormer_Large/Base/Small/Tiny.pth