Commit 7eae990a authored by ac_cx's avatar ac_cx
Browse files

goCTC uses buildWrangle

parent 4128c9a2
......@@ -12,7 +12,9 @@ else
system(['node ' eraseAll ' ' strTarget]);
end
[conn,CONSTANTS]=openDB(strTarget);
Write.setSegParams(conn,segParams);
if exist('segParams','var') && ~isempty(segParams)
Write.setSegParams(conn,segParams);
end
% set source image dir
[imageDir,dsName,~]=fileparts(strDB);
CONSTANTS.imageData.imageDir=imageDir;
......
% goctc.m - run ctc training or challenge.
if isunix()
ROOT='/g/leverjs/ctc2021/';
ROOT='/g/leverjs/ctc2021ap/';
outfolder='/g/leverjs/ctc2021_wrangle';
else
ROOT='g:/leverjs/ctc2021/';
outfolder='g:/leverjs/ctc2021_wrangle';
end
target='3d/*N3DH-CE*.LEVER';
if ~exist(outfolder,'dir')
mkdir(outfolder)
end
target='**/*training*.LEVER';
resFolder='./ctcResults';
if ~exist(resFolder,'dir')
mkdir(resFolder);
......@@ -16,18 +22,18 @@ res=table();
for ff=1:length(flist)
strDB=fullfile(flist(ff).folder,flist(ff).name);
ljsLog(sprintf('starting movie %s',strDB));
tp=tic();
pr=Batch.processMovie(strDB,false,84);
tElapsed=toc(tp);
ljsLog(sprintf('fini movie %s tElapsed=%.0f',strDB,tElapsed));
[ROOT,dsName]=fileparts(strDB);
strTarget=buildWrangleFile(strDB,outfolder,dsName,[]);
Batch.processMovie(strTarget);
if isempty(strfind(flist(ff).name,'training'))
continue
end
rx=ctcEval1(strDB);
rx=ctcEval1(strTarget);
if isempty(rx)
continue
end
rx.tProcessMovie=tElapsed;
end
res=[res;rx]
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment