Skip to content

Commit

Permalink
Make matconvnet setup transparent to mcc
Browse files Browse the repository at this point in the history
  • Loading branch information
tstenner authored Feb 4, 2021
1 parent e5ceed0 commit 98510e9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions activate_matconvnet.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@
pluginpath = fileparts(which('pop_iclabel'));

% activate matconvnet
folder = fullfile(pluginpath, 'matconvnet', 'matlab', 'mex');
path_cell = regexp(path, pathsep, 'split');
if ispc % Windows is not case-sensitive
flag = ~any(strcmpi(folder, path_cell));
else
flag = ~any(strcmp(folder, path_cell));
if ~exist(['vl_nnconv.', mexext()], 'file')
addpath(fullfile(pluginpath, 'matconvnet', 'matlab'));
vl_setupnn();
end
if flag
run(fullfile(pluginpath, 'matconvnet', 'matlab', 'vl_setupnn'))
end

0 comments on commit 98510e9

Please sign in to comment.