-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdemo2.sh
21 lines (14 loc) · 897 Bytes
/
demo2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
echo "Please input any key to start case 1."
read;
# compute and save scores.
python save_scores.py --center_only --gpu --model_def deploy_modelnet40_case1.prototxt --pretrained_model rotationnet_modelnet40_case1.caffemodel --input_file sample_case1_car_000000079.txt --output_file scores_case1_car_000000079.npy
# do prediction.
python classify_npyfile_case1_with_pose.py sample_case1_car_000000079.txt scores_case1_car_000000079.npy
echo ""
echo "Please input any key to start case 2."
read;
# compute and save scores.
python save_scores.py --center_only --gpu --model_def deploy_modelnet40_case2.prototxt --pretrained_model rotationnet_modelnet40_case2.caffemodel --input_file sample_case2_car_000000079.txt --output_file scores_case2_car_000000079.npy
# do prediction.
python classify_npyfile_case2_with_pose.py sample_case2_car_000000079.txt scores_case2_car_000000079.npy