-
Notifications
You must be signed in to change notification settings - Fork 8
/
ius_results.sh
executable file
·23 lines (18 loc) · 1.01 KB
/
ius_results.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
# Create a results folder in case it does not exist
if [ ! -d "results" ]; then
# Control will enter here if $DIRECTORY doesn't exist.
mkdir -p results/das
mkdir -p results/FISTA
mkdir -p results/FISTALP
fi
echo "***************************** Downloading the data *****************************"
python3 setup_ius.py
echo "***************************** Launching the image reconstruction scripts *****************************"
python3 launch_ius_scripts.py $1
echo "***************************** Launching the scripts generating the metrics *****************************"
cd matlab
CURR_PATH=$(pwd)
matlab -nodesktop -nojvm -nosplash -r "cd '$CURR_PATH'; generate_metrics({'../results/das', '../results/FISTA', '../results/FISTALP'}); exit;"
echo "***************************** Launching the scripts generating the figures *****************************"
matlab -nodesktop -nosplash -r "cd '$CURR_PATH'; generate_figures({'../results/das', '../results/FISTA', '../results/FISTALP'}); exit;"