forked from FangjinhuaWang/PatchmatchNet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eval.sh
41 lines (37 loc) · 2.2 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
#!/usr/bin/env bash
# test on DTU's evaluation set
DTU_TESTING="/home/dtu/"
CKPT_FILE="./checkpoints/model_000007.ckpt"
python eval.py --dataset=dtu_yao_eval --batch_size=1 --n_views 5 \
--patchmatch_iteration 1 2 2 --patchmatch_range 6 4 2 \
--patchmatch_num_sample 8 8 16 --propagate_neighbors 0 8 16 --evaluate_neighbors 9 9 9 \
--patchmatch_interval_scale 0.005 0.0125 0.025 \
--testpath=$DTU_TESTING --geo_pixel_thres=1 --geo_depth_thres=0.01 --photo_thres 0.8 \
--outdir=./outputs --testlist lists/dtu/test.txt --loadckpt $CKPT_FILE $@
# -------------------------------------------------------------------------------------
# test on eth3d benchmark
ETH3d_TESTING="/home/eth3d_high_res_test/"
# python eval_eth.py --dataset=eth3d --split train --batch_size=1 --n_views 7 \
# --patchmatch_iteration 1 2 2 --patchmatch_range 6 4 2 \
# --patchmatch_num_sample 8 8 16 --propagate_neighbors 0 8 16 --evaluate_neighbors 9 9 9 \
# --patchmatch_interval_scale 0.005 0.0125 0.025 \
# --testpath=$ETH3d_TESTING --geo_pixel_thres=1 --geo_depth_thres=0.01 --photo_thres=0.6 \
# --outdir ./outputs_eth --loadckpt $CKPT_FILE $@
# -------------------------------------------------------------------------------------
# test on tanks & temples
TANK_TESTING="/home/TankandTemples/"
# python eval_tank.py --dataset=tanks --split intermediate --batch_size=1 --n_views 7 \
# --patchmatch_iteration 1 2 2 --patchmatch_range 6 4 2 \
# --patchmatch_num_sample 8 8 16 --propagate_neighbors 0 8 16 --evaluate_neighbors 9 9 9 \
# --patchmatch_interval_scale 0.005 0.0125 0.025 \
# --testpath=$TANK_TESTING --geo_pixel_thres=1 --geo_depth_thres=0.01 \
# --outdir ./outputs_tanks --loadckpt $CKPT_FILE $@
# -------------------------------------------------------------------------------------
# test on your custom dataset
CUSTOM_TESTING="/home/custom/"
# python eval_custom.py --dataset=custom --batch_size=1 --n_views 5 \
# --patchmatch_iteration 1 2 2 --patchmatch_range 6 4 2 \
# --patchmatch_num_sample 8 8 16 --propagate_neighbors 0 8 16 --evaluate_neighbors 9 9 9 \
# --patchmatch_interval_scale 0.005 0.0125 0.025 \
# --testpath=$CUSTOM_TESTING --geo_pixel_thres=1 --geo_depth_thres=0.01 --photo_thres 0.8 \
# --outdir ./outputs_custom --loadckpt $CKPT_FILE $@