can't read model: number of return field is not correct
2014-04-15 22:57
387 查看
系统里装的是libsvm3.17,下载的一个场景字符识别程序没有标明用的是哪个版本的libsvm。
运行程序出现“can't read model: number of return field is not correct”。
错误在 “[pl,ac,py]=svmpredict(zeros(size(x,1),1),x,clf{3},'-b 0');”这一行里
之前一直无法解决。在熟悉了解了libsvm之后,发觉问题应该出现model上。
在http://www.csie.ntu.edu.tw/~cjlin/libsvm/oldfiles/上找到libsvm的旧版本(从libsvm3.1才开始支持matlab)。
发现model有两个地方不同,于是安装libsvm3.1成功解决问题。
Libsvm 3.1
Libsvm 3.17
http://www.csie.ntu.edu.tw/~cjlin/libsvm/oldfiles/
运行程序出现“can't read model: number of return field is not correct”。
错误在 “[pl,ac,py]=svmpredict(zeros(size(x,1),1),x,clf{3},'-b 0');”这一行里
之前一直无法解决。在熟悉了解了libsvm之后,发觉问题应该出现model上。
在http://www.csie.ntu.edu.tw/~cjlin/libsvm/oldfiles/上找到libsvm的旧版本(从libsvm3.1才开始支持matlab)。
发现model有两个地方不同,于是安装libsvm3.1成功解决问题。
Libsvm 3.1
Libsvm 3.17
http://www.csie.ntu.edu.tw/~cjlin/libsvm/oldfiles/
相关文章推荐
- C语言主函数返回值问题:return type of 'main' is not 'int' [-Wmain]
- return type of 'main' is not `int'
- The base class includes the field '...', but its type (...) is not compatible with the type of control (...)
- error C2039: 'foreground_regions' : is not a member of 'CvGaussBGModel'
- 执行 maven 命令 报错Unable to add module to the current project as it is not of packaging type 'pom'
- 使用TOMCAT5.5连接池连接mysql(解决Cannot create JDBC driver of class '' for connect URL 'null' 及can not load org.gjt.mm.mysql.Driver)
- 'SetWindowTextA' : is not a member of 'CString'
- Bean property 'RegDao' is not writable or has an invalid setter method. Does the parameter type of t
- cocos2d-x-2.2.5 Eclipse编译报错 error: 'transform' is not a member of 'std' (IOS没有问题)
- 'WHERE' is the same of 'on' in mysql(many times,but not always)
- error : 'AddString' : is not a member of 'CWnd'
- The authenticity of host 'www.101du.net (60.210.17.34)' can't be established. RSA key fingerprint is xxxx. Are you sure you want
- Mongodb无法启动:The default storage engine 'wiredTiger' is not available with this build of mongod.
- matlab错误:Function 'conv2' is not defined for values of class 'double' and attributes
- 'find_if’ is not a member of ‘std'
- error C2039: 'bitset' : is not a member of 'std'
- CvMat执行CvReshape()报错“The matrix is not continuous, thus its number of rows can not be changed”
- 错误整理:Unable to add module to the current project as it is not of packaging type 'pom'
- swift编码出现Call can throw, but it is not marked with 'try' and the error is not handled错误的解决
- SparkR去数据子集错误:object of type 'S4' is not subsettable