Skip to content

Commit 3f43cac

Browse files
author
Ji-Sung Kim
committed
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: shackenberg/Minimal-Bag-of-Visual-Words-Image-Classifier#2 [English] http://www.cnblogs.com/zklidd/p/3990915.html [Chinese]
1 parent 8f3d96e commit 3f43cac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/easy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
print('Scaling training data...')
5050
Popen(cmd, shell = True, stdout = PIPE).communicate()
5151

52-
cmd = '{0} -svmtrain "{1}" -gnuplot "{2}" "{3}"'.format(grid_py, svmtrain_exe, gnuplot_exe, scaled_file)
52+
cmd = 'python {0} -svmtrain "{1}" -gnuplot "{2}" "{3}"'.format(grid_py, svmtrain_exe, gnuplot_exe, scaled_file)
5353
print('Cross validation...')
5454
f = Popen(cmd, shell = True, stdout = PIPE).stdout
5555

0 commit comments

Comments
 (0)