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
7ce1daf5
Commit
7ce1daf5
authored
Aug 31, 2018
by
Cresson Remi
Browse files
ADD: chane parameters names
parent
82c27e1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/otbTensorflowModelTrain.cxx
View file @
7ce1daf5
...
@@ -122,10 +122,10 @@ public:
...
@@ -122,10 +122,10 @@ public:
// Parameter group keys
// Parameter group keys
ss_key_tr_in
<<
ss_key_tr_group
.
str
()
<<
".il"
;
ss_key_tr_in
<<
ss_key_tr_group
.
str
()
<<
".il"
;
ss_key_val_in
<<
ss_key_val_group
.
str
()
<<
".il"
;
ss_key_val_in
<<
ss_key_val_group
.
str
()
<<
".il"
;
ss_key_dims_x
<<
ss_key_tr_group
.
str
()
<<
".
fov
x"
;
ss_key_dims_x
<<
ss_key_tr_group
.
str
()
<<
".
patchsize
x"
;
ss_key_dims_y
<<
ss_key_tr_group
.
str
()
<<
".
fov
y"
;
ss_key_dims_y
<<
ss_key_tr_group
.
str
()
<<
".
patchsize
y"
;
ss_key_tr_ph
<<
ss_key_tr_group
.
str
()
<<
".placeholder"
;
ss_key_tr_ph
<<
ss_key_tr_group
.
str
()
<<
".placeholder"
;
ss_key_val_ph
<<
ss_key_val_group
.
str
()
<<
".
placeholder
"
;
ss_key_val_ph
<<
ss_key_val_group
.
str
()
<<
".
name
"
;
// Parameter group descriptions
// Parameter group descriptions
ss_desc_tr_in
<<
"Input image (or list to stack) for source #"
<<
inputNumber
<<
" (training)"
;
ss_desc_tr_in
<<
"Input image (or list to stack) for source #"
<<
inputNumber
<<
" (training)"
;
...
@@ -133,7 +133,8 @@ public:
...
@@ -133,7 +133,8 @@ public:
ss_desc_dims_x
<<
"Field of view width for source #"
<<
inputNumber
;
ss_desc_dims_x
<<
"Field of view width for source #"
<<
inputNumber
;
ss_desc_dims_y
<<
"Field of view height for source #"
<<
inputNumber
;
ss_desc_dims_y
<<
"Field of view height for source #"
<<
inputNumber
;
ss_desc_tr_ph
<<
"Name of the input placeholder for source #"
<<
inputNumber
<<
" (training)"
;
ss_desc_tr_ph
<<
"Name of the input placeholder for source #"
<<
inputNumber
<<
" (training)"
;
ss_desc_val_ph
<<
"Name of the input placeholder for source #"
<<
inputNumber
<<
" (validation)"
;
ss_desc_val_ph
<<
"Name of the input placeholder "
"or output tensor for source #"
<<
inputNumber
<<
" (validation)"
;
// Populate group
// Populate group
AddParameter
(
ParameterType_Group
,
ss_key_tr_group
.
str
(),
ss_desc_tr_group
.
str
());
AddParameter
(
ParameterType_Group
,
ss_key_tr_group
.
str
(),
ss_desc_tr_group
.
str
());
...
@@ -224,12 +225,12 @@ public:
...
@@ -224,12 +225,12 @@ public:
// Example
// Example
SetDocExampleParameterValue
(
"source1.il"
,
"spot6pms.tif"
);
SetDocExampleParameterValue
(
"source1.il"
,
"spot6pms.tif"
);
SetDocExampleParameterValue
(
"source1.placeholder"
,
"x1"
);
SetDocExampleParameterValue
(
"source1.placeholder"
,
"x1"
);
SetDocExampleParameterValue
(
"source1.
fovx"
,
"16"
);
SetDocExampleParameterValue
(
"source1.
patchsizex"
,
"16"
);
SetDocExampleParameterValue
(
"source1.
fovy"
,
"16"
);
SetDocExampleParameterValue
(
"source1.
patchsizey"
,
"16"
);
SetDocExampleParameterValue
(
"source2.il"
,
"labels.tif"
);
SetDocExampleParameterValue
(
"source2.il"
,
"labels.tif"
);
SetDocExampleParameterValue
(
"source2.placeholder"
,
"y1"
);
SetDocExampleParameterValue
(
"source2.placeholder"
,
"y1"
);
SetDocExampleParameterValue
(
"source2.
fovx"
,
"1"
);
SetDocExampleParameterValue
(
"source2.
patchsizex"
,
"1"
);
SetDocExampleParameterValue
(
"source2.
fovy"
,
"1"
);
SetDocExampleParameterValue
(
"source2.
patchsizex"
,
"1"
);
SetDocExampleParameterValue
(
"model.dir"
,
"/tmp/my_saved_model/"
);
SetDocExampleParameterValue
(
"model.dir"
,
"/tmp/my_saved_model/"
);
SetDocExampleParameterValue
(
"training.userplaceholders"
,
"is_training=true dropout=0.2"
);
SetDocExampleParameterValue
(
"training.userplaceholders"
,
"is_training=true dropout=0.2"
);
SetDocExampleParameterValue
(
"training.targetnodes"
,
"optimizer"
);
SetDocExampleParameterValue
(
"training.targetnodes"
,
"optimizer"
);
...
@@ -293,7 +294,7 @@ public:
...
@@ -293,7 +294,7 @@ public:
m_InputPatchesSizeForTraining
.
push_back
(
patchSize
);
m_InputPatchesSizeForTraining
.
push_back
(
patchSize
);
otbAppLogINFO
(
"New source:"
);
otbAppLogINFO
(
"New source:"
);
otbAppLogINFO
(
"
Field of view
: "
<<
patchSize
);
otbAppLogINFO
(
"
Patch size
: "
<<
patchSize
);
otbAppLogINFO
(
"Placeholder (training) : "
<<
placeholderForTraining
);
otbAppLogINFO
(
"Placeholder (training) : "
<<
placeholderForTraining
);
// Prepare validation sources
// Prepare validation sources
...
...
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