文章出處

@tag: caffe

windows10上配置好caffe后(配置了matlab接口),運行caffe-master/matlab/demo/classification_demo.m報錯,提示:

未定義函數或變量caffe_

問題解決:

I resolved the issue using the following steps:

Add <caffe_root>\Build\x64\Release to your system path, e.g
PATH1;PATH2;D:\caffe-windows\Build\x64\Release
Important: 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 changing
addpath('..');
to
addpath('../../Build/x64/Release/matcaffe');

Run classification_demo.m
You should run it from <caffe_root>\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.

來源:https://github.com/BVLC/caffe/issues/4461


文章列表


不含病毒。www.avast.com
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()