First, it is a good project for learning. I am using my own training set with 3 groups and each group has around 10 figures for training. I execute the command with the following error. I was wondering it is caused by the short of training sample?
python learn.py -d mytest/
loading the images and extracting the sift features
searching for folders at mytest/
found following folders / categories:
['apple', 'cat', 'star']
extracting Sift features
gathering sift features for mytest/apple/5.png (36, 128)
gathering sift features for mytest/apple/4.png (18, 128)
gathering sift features for mytest/apple/9.png (42, 128)
extracting Sift features
gathering sift features for mytest/cat/5.png (100, 128)
gathering sift features for mytest/cat/8.png (241, 128)
gathering sift features for mytest/cat/3.png (220, 128)
gathering sift features for mytest/cat/9.png (92, 128)
extracting Sift features
gathering sift features for mytest/star/2.png (61, 128)
gathering sift features for mytest/star/3.png (52, 128)
computing the visual words via k-means
compute the visual words histograms for each image
write the histograms to file to pass it to the svm
python ./grid.py -svmtrain "libsvm/svm-train" -gnuplot "/usr/bin/gnuplot" -png grid_res_img_file.png "mytest/trainingdata.svm.scale"
Cross validation...
Traceback (most recent call last):
File "./grid.py", line 266, in run
if rate is None: raise RuntimeError('get no rate')
RuntimeError: get no rate
worker local quit.
Hello,
First, it is a good project for learning. I am using my own training set with 3 groups and each group has around 10 figures for training. I execute the command with the following error. I was wondering it is caused by the short of training sample?
python learn.py -d mytest/
loading the images and extracting the sift features
searching for folders at mytest/ found following folders / categories:
['apple', 'cat', 'star']
extracting Sift features gathering sift features for mytest/apple/5.png (36, 128) gathering sift features for mytest/apple/4.png (18, 128) gathering sift features for mytest/apple/9.png (42, 128) extracting Sift features gathering sift features for mytest/cat/5.png (100, 128) gathering sift features for mytest/cat/8.png (241, 128) gathering sift features for mytest/cat/3.png (220, 128) gathering sift features for mytest/cat/9.png (92, 128) extracting Sift features gathering sift features for mytest/star/2.png (61, 128)
gathering sift features for mytest/star/3.png (52, 128)
computing the visual words via k-means
compute the visual words histograms for each image
write the histograms to file to pass it to the svm
train svm
Scaling training data...
libsvm/svm-scale: 1: libsvm/svm-scale: Syntax error: ")" unexpected
python ./grid.py -svmtrain "libsvm/svm-train" -gnuplot "/usr/bin/gnuplot" -png grid_res_img_file.png "mytest/trainingdata.svm.scale" Cross validation... Traceback (most recent call last): File "./grid.py", line 266, in run if rate is None: raise RuntimeError('get no rate') RuntimeError: get no rate worker local quit.
Thanks! Zhengyang