Parcourir la source

Update of maxwell script run

Jerome Buisine il y a 5 ans
Parent
commit
aebe8276ed
2 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 1 1
      predict_seuil_expe.py
  2. 1 2
      runAll_maxwell.sh

+ 1 - 1
predict_seuil_expe.py

@@ -116,7 +116,7 @@ def main():
                 
                 # check only if necessary for this scene (not already detected)
                 if not threshold_expes_detected[id_block]:
-                    tmp_file_path = tmp_filename.replace('__model__', '_' + p_model_file.split('/')[1])
+                    tmp_file_path = tmp_filename.replace('__model__',  p_model_file.split('/')[-1].replace('.joblib', '_'))
                     block.save(tmp_file_path)
 
                     python_cmd = "python predict_noisy_image_svd_lab.py --image " + tmp_file_path + \

+ 1 - 2
runAll_maxwell.sh

@@ -1,6 +1,5 @@
 #! bin/bash
 
 for size in {"4","8","16","26","32","40"}; do
-
     bash generateAndTrain_maxwell.sh ${size} &
-done
+done