Spaces:
Runtime error
Runtime error
File size: 673 Bytes
2df809d |
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 |
#!/bin/bash
set -e
workdir='.'
model_name='ours'
ckpt_name='cut3r_512_dpt_4_64'
model_weights="${workdir}/src/${ckpt_name}.pth"
datasets=('sintel' 'bonn' 'kitti' 'nyu')
for data in "${datasets[@]}"; do
output_dir="${workdir}/eval_results/monodepth/${data}_${model_name}"
echo "$output_dir"
python eval/monodepth/launch.py \
--weights "$model_weights" \
--output_dir "$output_dir" \
--eval_dataset "$data"
done
for data in "${datasets[@]}"; do
output_dir="${workdir}/eval_results/monodepth/${data}_${model_name}"
python eval/monodepth/eval_metrics.py \
--output_dir "$output_dir" \
--eval_dataset "$data"
done
|