Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35bac78

Browse files
committed
debug matlab wrapper
1 parent 0274957 commit 35bac78

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

matlab/feat_batch.m

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
% By default use CPU
55
use_gpu = 0;
66
end
7-
if nargin < 2 || isempty(net_model)
8-
% By default use imagenet_deploy
9-
net_model = '/home/titan/hfyang/hashing/training/NUS-WIDE/NUS-KevinNet-48/KevinNet_NUS_48_deploy.prototxt';
10-
end
11-
if nargin < 3 || isempty(net_weights)
12-
% By default use caffe reference model
13-
net_weights = '/home/titan/hfyang/hashing/training/NUS-WIDE/NUS-KevinNet-48/models-20150720/KevinNet_NUS_48_iter_50000';
14-
end
157
if ischar(list_im)
168
%Assume it is a file contaning the list of images
179
filename = list_im;
@@ -41,7 +33,7 @@
4133
net = caffe.Net(net_model, net_weights, phase);
4234

4335
% load mean file
44-
d = load('/home/iis/adsc/caffe-new-cbd-udnn/matlab/+caffe/imagenet/ilsvrc_2012_mean.mat');
36+
d = load('./matlab/+caffe/imagenet/ilsvrc_2012_mean.mat');
4537
mean_data = d.mean_data;
4638

4739
batch_size = 10;

0 commit comments

Comments
 (0)