automatic commit
[folded-ctf.git] / run.sh
diff --git a/run.sh b/run.sh
index 42dc58b..f718d11 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -19,7 +19,7 @@
 
 MAIN_URL="http://www.idiap.ch/folded-ctf"
 
-######################################################################
+#########################################################################
 # Compiling
 
 make -j -k
@@ -31,7 +31,7 @@ fi
 
 echo
 
-######################################################################
+#########################################################################
 # Generating the pool file
 
 DATA_PATH=./rmk-data
@@ -77,13 +77,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 +92,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 +114,9 @@ case $1 in
 
         ;;
 
+    #####################################################################
+    ## Run the full computation
+
     valgrind|"")
 
         if [[ ! -d ${RESULT_DIR} ]]; then