Skip to content

Commit

Permalink
easy.py change - fixes #42
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Ji-Sung Kim committed Aug 7, 2015
1 parent 8f3d96e commit 3f43cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/easy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

1 comment on commit 3f43cac

@afdiaz
Copy link

@afdiaz afdiaz commented on 3f43cac Oct 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still keeps throwing the same error for me

Please sign in to comment.