forked from xiaolonw/TimeCycle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_test.sh
More file actions
executable file
·20 lines (15 loc) · 781 Bytes
/
run_test.sh
File metadata and controls
executable file
·20 lines (15 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
for name in checkpoint_14.pth.tar
do
YOUR_DATASET_FOLDER=''
echo $name
if [ ! -d "results/davis_results__$name/" ]; then
python test_davis.py \
--evaluate --cropSize 320 --cropSize2 80 --gpu-id 0,1,2,3 --topk_vis 5 \
--resume pytorch_checkpoints/release_model_simple/$name \
--save_path results/davis_results__$name/
fi
python preprocess/convert_davis.py --in_folder results/davis_results__$name/ --out_folder results/davis_results__${name}_converted/ --dataset $YOUR_DATASET_FOLDER/davis/ && \
python $YOUR_DATASET_FOLDER/davis-2017/python/tools/eval.py -i results/davis_results__${name}_converted/ -o results/davis_results__${name}_converted/results.yaml --year 2017 --phase val \
| tee results/davis_results__${name}_converted/output.txt &
done