From 3f43cac382e350c4ddaeefcc05c0744ee557e286 Mon Sep 17 00:00:00 2001 From: Ji-Sung Kim Date: Fri, 7 Aug 2015 17:41:18 -0500 Subject: [PATCH] easy.py change - fixes #42 The ValueError being thrown is because grid.py is not executable. This change fixes that issue. This has been discussed prior: https://github.com/shackenberg/Minimal-Bag-of-Visual-Words-Image-Classifier/issues/2 [English] http://www.cnblogs.com/zklidd/p/3990915.html [Chinese] --- tools/easy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/easy.py b/tools/easy.py index 9cf4362b..01cae5a6 100755 --- a/tools/easy.py +++ b/tools/easy.py @@ -49,7 +49,7 @@ print('Scaling training data...') Popen(cmd, shell = True, stdout = PIPE).communicate() -cmd = '{0} -svmtrain "{1}" -gnuplot "{2}" "{3}"'.format(grid_py, svmtrain_exe, gnuplot_exe, scaled_file) +cmd = 'python {0} -svmtrain "{1}" -gnuplot "{2}" "{3}"'.format(grid_py, svmtrain_exe, gnuplot_exe, scaled_file) print('Cross validation...') f = Popen(cmd, shell = True, stdout = PIPE).stdout