本文共 861 字,大约阅读时间需要 2 分钟。
@tag: caffe
windows10上配置好caffe后(配置了matlab接口),运行caffe-master/matlab/demo/classification_demo.m报错,提示:
未定义函数或变量caffe_
问题解决:
I resolved the issue using the following steps:Add\Build\x64\Release to your system path, e.gPATH1;PATH2;D:\caffe-windows\Build\x64\ReleaseImportant: When appending a new item to a former list of paths, make sure there is no white space after the semicolon.Now open a Matlab session and add the generated matcaffe folder to the Matlab search path, e.g. addpath('D:\caffe-windows\Build\x64\Release\matcaffe')Edit classification_demo.m by changingaddpath('..');toaddpath('../../Build/x64/Release/matcaffe');Run classification_demo.mYou should run it from \matlab\demo folder as your current directory. This is because the demo uses other paths relative to this folder for loading models, example images, etc.
来源:
转载地址:http://pqupx.baihongyu.com/