bellonemauro / SVM_pcl_demo

example of SVM classification using PCL library
GNU General Public License v3.0
14 stars 7 forks source link

Labeling format for train data not understand #2

Open Tejuwi opened 6 years ago

Tejuwi commented 6 years ago

Hi Mauro,

I didn't understand the labeling format, can you please explain the format? how can we save tested results?

Thanks again

bellonemauro commented 6 years ago

the format is the same of svmlib, see this https://www.csie.ntu.edu.tw/~cjlin/libsvm/

The result can be saved using the -s option, but I wrote that code a while ago, so I should test before being 100% sure

Tejuwi commented 6 years ago

Thank you,

I have execute your program and it is working well on your model. If i created model with your train.dat and trying with classification but I am getting the following error. I think problem with saving model.

unknown text in model file: [.36675844] [pcl::SvmClassify::loadClassifierModel] Can't open classifier model D:\Data\model_out.dat. <> : Was not able to open file "D:\Data\model_out.dat".

bellonemauro commented 6 years ago

I believe it depends on which version of PCL you are running, there is a small patch here https://github.com/bellonemauro/pcl/tree/master/ml

you have to look for the files svm.cpp / h, and svm_wrapper.cpp / h .... I have not used the pcl since a while so I do not know the current level of this part of development. But I know they wanted to change the ml tools.

btw, if you compile my own version here https://github.com/bellonemauro/pcl/ it should work

Tejuwi commented 6 years ago

Thank you. I will use your pcl version

Tejuwi commented 6 years ago

I have compiled your pcl version but build few libraries including ml. I have used your ml folder but still not able to load the model.