shackenberg / Minimal-Bag-of-Visual-Words-Image-Classifier

Implementation of a content based image classifier using the bag of visual words approach in Python together with Lowe's SIFT and Libsvm.
236 stars 94 forks source link

[learn.py \ grid.py] ValueError: need more than 0 values to unpack #2

Closed shackenberg closed 11 years ago

shackenberg commented 11 years ago

Complete error message:

./grid.py -svmtrain "libsvm/svm-train" -gnuplot "/usr/bin/gnuplot" -png grid_res_img_file.png "../../datasets/Caltech/3_ObjectCategories2/trainingdata.svm.scale"
Cross validation...
/bin/sh: 1: ./grid.py: Permission denied
Traceback (most recent call last):
  File "learn.py", line 157, in <module>
    png_filename='grid_res_img_file.png')
  File "/home/ludwig/Documents/temp/Minimal-Bag-of-Visual-Words-Image-Classifier/libsvm.py", line 152, in grid
    c,g,rate = map(float,last_line.split())
ValueError: need more than 0 values to unpack

The cause of this error is, that for some reason grid.py is not set to be executable. To make grid.py executable enter: chmod +x grid.py