Skip to content

Model and Weights error result in Matlab crash #5

@RichardoTiono

Description

@RichardoTiono

Hi, I have some problem when running a test in your code. Apparently I keep getting crash when I tried to run your code and I manage to track which part that gives the error which is when trying to load the model. So I tried to check if the problem persist when I tried to open other model, I tried to open other model and I was able to print out the Net. So can you help me fix this?

I have put below the part that has error on it.

clc; clear;
% %% TO DO: Add your Matcaffe path as $PATH_TO_CAFFE/matlab
PATH_TO_CAFFE_MATLAB='/home/cgal/caffe/matlab/';
addpath(genpath(PATH_TO_CAFFE_MATLAB));

addpath(genpath('functions'));

model = '/home/cgal/SfSNet/SfSNet_deploy.prototxt';
weights='/home/cgal/SfSNet/SfSNet.caffemodel.h5';

%model = '/home/cgal/caffe/models/bvlc_reference_caffenet/deploy.prototxt';
%weights = '/home/cgal/caffe/models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel';

GPU_ID=0; %Set your GPU ID
caffe.set_mode_gpu();
caffe.set_device(GPU_ID);
net = caffe.Net(model, weights, 'test');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions