Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cresson Remi
LSGRM
Commits
0c9425d9
Commit
0c9425d9
authored
Dec 11, 2018
by
Gaetano Raffaele
Browse files
Working on the resume option to resume segmentation after fail or abort.
parent
1c83eb19
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/lsgrmController.txx
View file @
0c9425d9
...
...
@@ -92,7 +92,8 @@ void Controller<TSegmenter>::RunSegmentation()
// Run first partial segmentation
boost::timer t; t.restart();
auto accumulatedMemory = RunFirstPartialSegmentation<TSegmenter>(
if (!m_Resuming) {
auto accumulatedMemory = RunFirstPartialSegmentation<TSegmenter>(
m_InputImage,
m_SpecificParameters,
m_Threshold,
...
...
@@ -104,6 +105,10 @@ void Controller<TSegmenter>::RunSegmentation()
m_TileWidth,
m_TileHeight,
isFusion);
} else {
// temp. patch, maybe calculate real current memory after resuming graphs.
auto accumulatedMemory = 2 * m_Memory;
}
#ifdef OTB_USE_MPI
GatherUsefulVariables(accumulatedMemory, isFusion);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment