facebookarchive / fb.resnet.torch

Torch implementation of ResNet from http://arxiv.org/abs/1512.03385 and training scripts
Other
2.29k stars 664 forks source link

it's my code but i don't why it's show me this error... #195

Open izharalikhan opened 7 years ago

izharalikhan commented 7 years ago

function detector = acfTrain_my( varargin )

% initialize opts struct opts = initializeOpts( varargin{:} ); if(nargin==0), detector=opts; return; end

function opts = initializeOpts( varargin ) % Initialize opts struct. dfs= { 'pPyramid',{}, 'modelDs',[100 41], 'modelDsPad',[128 64], ... 'pNms',struct(), 'stride',4, 'cascThr',-1, 'cascCal',.005, ... 'nWeak',128, 'pBoost', {}, 'seed',0, 'name','', 'posGtDir','', ... 'posImgDir','', 'negImgDir','', 'posWinDir','', 'negWinDir','', ... 'imreadf',@imread, 'imreadp',{}, 'pLoad',{}, 'nPos',inf, 'nNeg',5000, ... 'nPerNeg',25, 'nAccNeg',10000, 'pJitter',{}, 'winsSave',0 }; opts = getPrmDflt(varargin,dfs,1); % fill in remaining parameters p=chnsPyramid_my([],opts.pPyramid); p=p.pPyramid; p.minDs=opts.modelDs; shrink=p.pChns.shrink; opts.modelDsPad=ceil(opts.modelDsPad/shrink)shrink; p.pad=ceil((opts.modelDsPad-opts.modelDs)/shrink/2)shrink; p=chnsPyramid_my([],p); p=p.pPyramid; p.complete=1; p.pChns.complete=1; opts.pPyramid=p; % initialize pNms, pBoost, pBoost.pTree, and pLoad dfs={ 'type','maxg', 'overlap',.65, 'ovrDnm','min' }; opts.pNms=getPrmDflt(opts.pNms,dfs,-1); dfs={ 'pTree',{}, 'nWeak',0, 'discrete',1, 'verbose',16 }; opts.pBoost=getPrmDflt(opts.pBoost,dfs,1); dfs={'nBins',256,'maxDepth',2,'minWeight',.01,'fracFtrs',1,'nThreads',1e5}; opts.pBoost.pTree=getPrmDflt(opts.pBoost.pTree,dfs,1); opts.pLoad=getPrmDflt(opts.pLoad,{'squarify',{0,1}},-1); opts.pLoad.squarify{2}=opts.modelDs(2)/opts.modelDs(1); end ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Error;;;;

Undefined function 'getPrmDflt' for input arguments of type 'cell'.

Error in acfTrain_my>initializeOpts (line 208) opts = getPrmDflt(varargin,dfs,1);

Error in acfTrain_my (line 115) opts = initializeOpts( varargin{:} );