X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=run.sh;h=678c00e07cc32a94aef6751553b13045f7fbe230;hb=20ec321944108cd1fe74b37ea45db3ba1a2d526a;hp=42dc58b182285324da09a1f5a6aa8868202268cd;hpb=94ef84aef3a1845326c7c43970997b701a919bd6;p=folded-ctf.git
diff --git a/run.sh b/run.sh
index 42dc58b..678c00e 100755
--- a/run.sh
+++ b/run.sh
@@ -13,13 +13,15 @@
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see . #
# #
-# Written by Francois Fleuret, (C) IDIAP #
+# Written by Francois Fleuret #
+# (C) Idiap Research Institute #
+# #
# Contact for comments & bug reports #
#########################################################################
MAIN_URL="http://www.idiap.ch/folded-ctf"
-######################################################################
+#########################################################################
# Compiling
make -j -k
@@ -31,7 +33,7 @@ fi
echo
-######################################################################
+#########################################################################
# Generating the pool file
DATA_PATH=./rmk-data
@@ -77,13 +79,13 @@ else
fi
-######################################################################
-# Running the computation per se
-
RESULT_DIR=./results
case $1 in
+ #####################################################################
+ ## Generate the pictures from the paper
+
pics)
SEED=0
@@ -92,14 +94,14 @@ case $1 in
if [[ -d "${EXPERIMENT_RESULT_DIR}" ]]; then
- for n in -1 0 2501 2504; do
+ for npf in -1 0 2497; do
./folding --random-seed=${SEED} \
--pool-name=${POOL_NAME} \
- --result-path=${EXPERIMENT_RESULT_DIR} \
+ --result-path=/tmp/ \
--detector-name=${EXPERIMENT_RESULT_DIR}/default.det \
- --nb-images=1 \
- --material-feature-nb=${n} \
+ --nb-images=63 \
+ --material-feature-nb=${npf} \
open-pool \
read-detector \
write-pool-images
@@ -114,6 +116,9 @@ case $1 in
;;
+ #####################################################################
+ ## Run the full computation
+
valgrind|"")
if [[ ! -d ${RESULT_DIR} ]]; then