clear;clc;
addpath('C:\caffe_windows_ms_cpu0\matlab');
addpath(genpath('utils/'));
caffe.reset_all();
% load model and creat network
caffe.set_mode_cpu();
netname = 'PersonReID_model'; % network: CaffeNet or ResNet_50
% set your path to the prototxt and model
model = 'C:\\Examples\\Person_ReID\\boya\\reid\\reid\\person_reid\\PersonReID_model.prototxt';
weights = 'C:\\Examples\\Person_ReID\\boya\\reid\\reid\\person_reid\\PersonReID_model.caffemodel';
net = caffe.Net(model, weights, 'test');
caffe.reset_all();和caffe.set_mode_cpu();没有报错
net = caffe.Net(model, weights, 'test');崩溃
(1)在gpu接口和cpu接口之间切换时候,要重启matlab
(2)检查model和weight的路径,文件名
(3)用python接口运行看是否报错