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
Lozac'h Loic
otbtf
Commits
2062149c
Commit
2062149c
authored
Aug 03, 2018
by
remi cresson
Browse files
DEBUG: temporary disable streaming for training
parent
b5d53231
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/otbTensorflowMultisourceModelTrain.hxx
View file @
2062149c
...
...
@@ -102,7 +102,9 @@ TensorflowMultisourceModelTrain<TInputImage>
{
RegionType
nullRegion
;
ImageType
*
inputImage
=
static_cast
<
ImageType
*
>
(
Superclass
::
ProcessObject
::
GetInput
(
i
)
);
inputImage
->
SetRequestedRegion
(
nullRegion
);
// TODO: streaming mode on/off
// inputImage->SetRequestedRegion(nullRegion);
inputImage
->
SetRequestedRegion
(
inputImage
->
GetLargestPossibleRegion
());
}
// next image
}
...
...
@@ -170,7 +172,8 @@ TensorflowMultisourceModelTrain<TInputImage>
start
[
0
]
=
0
;
start
[
1
]
=
randPos
*
sz_y
;
RegionType
patchRegion
(
start
,
inputPatchSize
);
tf
::
PropagateRequestedRegion
<
TInputImage
>
(
inputPtr
,
patchRegion
);
// TODO: streaming mode on/off
// tf::PropagateRequestedRegion<TInputImage>(inputPtr, patchRegion);
tf
::
RecopyImageRegionToTensorWithCast
<
TInputImage
>
(
inputPtr
,
patchRegion
,
inputTensor
,
elem
);
}
...
...
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