Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ljsctc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
ljsctc
Commits
7eae990a
Commit
7eae990a
authored
Sep 24, 2021
by
ac_cx
Browse files
Options
Downloads
Patches
Plain Diff
goCTC uses buildWrangle
parent
4128c9a2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/buildWrangleFile.m
+3
-1
3 additions, 1 deletion
src/buildWrangleFile.m
src/goCTC.m
+15
-9
15 additions, 9 deletions
src/goCTC.m
with
18 additions
and
10 deletions
src/buildWrangleFile.m
+
3
−
1
View file @
7eae990a
...
...
@@ -12,7 +12,9 @@ else
system
([
'node '
eraseAll
' '
strTarget
]);
end
[
conn
,
CONSTANTS
]
=
openDB
(
strTarget
);
if
exist
(
'segParams'
,
'var'
)
&&
~
isempty
(
segParams
)
Write
.
setSegParams
(
conn
,
segParams
);
end
% set source image dir
[
imageDir
,
dsName
,
~
]
=
fileparts
(
strDB
);
CONSTANTS
.
imageData
.
imageDir
=
imageDir
;
...
...
This diff is collapsed.
Click to expand it.
src/goCTC.m
+
15
−
9
View file @
7eae990a
% 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
(
str
DB
);
rx
=
ctcEval1
(
str
Target
);
if
isempty
(
rx
)
continue
end
rx
.
tProcessMovie
=
tElapsed
;
res
=
[
res
;
rx
]
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment