eval.sh 695 Bytes
Newer Older
chenych's avatar
chenych committed
1
2
3
4
5
6
# !/bin/bash

set -x

JOB_NAME="painter_vit_large"
CKPT_FILE="painter_vit_large.pth"
Rayyyyy's avatar
Rayyyyy committed
7
PROMPT="study_room_0005b/rgb_00092"
chenych's avatar
chenych committed
8
9
10
11
12
13
14

MODEL="painter_vit_large_patch16_input896x448_win_dec64_8glb_sl1"
CKPT_PATH="models/${JOB_NAME}/${CKPT_FILE}"
DST_DIR="models_inference/${JOB_NAME}/nyuv2_depth_inference_${CKPT_FILE}_${PROMPT}"
DATA_DIR="datasets"
# inference
python eval/nyuv2_depth/painter_inference_depth.py \
chenych's avatar
chenych committed
15
  --data_dir ${DATA_DIR} \
chenych's avatar
chenych committed
16
17
18
19
20
21
  --ckpt_path ${CKPT_PATH} --model ${MODEL} --prompt ${PROMPT}

python eval/nyuv2_depth/eval_with_pngs.py \
  --pred_path ${DST_DIR} \
  --gt_path ${DATA_DIR}/nyu_depth_v2/official_splits/test/ \
  --dataset nyu --min_depth_eval 1e-3 --max_depth_eval 10 --eigen_crop