Skip to content

netE in line 20 of SEGNET_BASIC.m and Initialization of 'preNet' #1

@SavanGowda

Description

@SavanGowda

Hi,

I was working on SegNet as well and came across your work! The below the code I have used to initialize the input arguements to the launchnet which in return calls the SEGNET_BASIC.m


run(fullfile(fileparts(mfilename('fullpath')), '../', 'matlab', 'vl_setupnn.m')) ;
% addpath(genpath('networks'));
% addpath(genpath('trainers'));

% defining basic values for the NET
netName = 'SEGNET_BASIC';
experimentID = '1';
opt_GPUID = 1;
preNet = '';
dataPath = fullfile(fileparts(mfilename('fullpath')));

% Create or load imdb
if exist(fullfile(dataPath, '/data','imdb.mat')) == 0
imdb = get_SegNet_Data();
save(fullfile(dataPath, '/data','imdb.mat'), 'imdb');
else
load(fullfile(dataPath, '/data','imdb.mat'));

end

%launch the net
launch_net(imdb, netName, experimentID, opt_GPUID, preNet);


I am really not sure whether initializing the 'preNet' the way I have done is correct or not!


And in SEGNET_BASIC.m file you have declared in the % getBatch options in line 20
netE = varargin{1}{1}; (I get an error as in my case varargin is 1X1 cell)
which is used as an arguement for ovl_simplenn_move_extended (netE, 'gpu')

I am getting an error (Attempt to reference field of non-structure array)
because the arguement 'netE' (because I have assigned netE to 1X1 varargin cell)

I am unable to proceed further! Any help would be greatly appreciated

Thanks & Regards
Savan

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