-
Notifications
You must be signed in to change notification settings - Fork 3
/
average_testing_error.sh
executable file
·24 lines (12 loc) · 1.02 KB
/
average_testing_error.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Usage: sh average_testing_error.sh <model basepath> <result path>
MODELBASE=$1
RESULTPATH=$2
MATLAB_LIBPATH="~/project/Aesthetics/PhotoAssessment"
echo $MODELPATH
mkdir -p $RESULTPATH
matlab -nosplash -r "addpath('$MATLAB_LIBPATH'); batchAverageTextingError('$MODELBASE', 'model_testing_error.mat', '$RESULTPATH', 'average_testing_error')"
matlab -nosplash -r "addpath('$MATLAB_LIBPATH'); batchAverageTextingError('$MODELBASE', 'hsv_model_testing_error.mat', '$RESULTPATH', 'hsv_average_testing_error')"
matlab -nosplash -r "addpath('$MATLAB_LIBPATH'); batchAverageTextingError('$MODELBASE', 'edge_model_testing_error.mat', '$RESULTPATH', 'edge_average_testing_error')"
matlab -nosplash -r "addpath('$MATLAB_LIBPATH'); batchAverageTextingError('$MODELBASE', 'texture_model_testing_error.mat', '$RESULTPATH', 'texture_average_testing_error')"
matlab -nosplash -r "addpath('$MATLAB_LIBPATH'); batchAverageTextingError('$MODELBASE', 'saliency_model_testing_error.mat', '$RESULTPATH', 'saliency_average_testing_error')"