Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
python3-imagej-tiff
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
python3-imagej-tiff
Commits
445d71c4
Commit
445d71c4
authored
Aug 07, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor change in debug output
parent
54dda3d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
nn_ds_inmem4_tmp.py
nn_ds_inmem4_tmp.py
+5
-2
No files found.
nn_ds_inmem4_tmp.py
View file @
445d71c4
...
@@ -153,7 +153,8 @@ n_allowed_train_filesTFR = min(MAX_TRAIN_FILES_TFR,len(train_filesTFR))
...
@@ -153,7 +153,8 @@ n_allowed_train_filesTFR = min(MAX_TRAIN_FILES_TFR,len(train_filesTFR))
import
tensorflow
as
tf
import
tensorflow
as
tf
import
tensorflow.contrib.slim
as
slim
import
tensorflow.contrib.slim
as
slim
print_time
(
"Importing training data... "
,
end
=
""
)
#print_time("Importing training data... ", end="")
print_time
(
"Importing training data... "
)
corr2d_trains
=
[
None
]
*
n_allowed_train_filesTFR
corr2d_trains
=
[
None
]
*
n_allowed_train_filesTFR
target_disparity_trains
=
[
None
]
*
n_allowed_train_filesTFR
target_disparity_trains
=
[
None
]
*
n_allowed_train_filesTFR
...
@@ -162,6 +163,7 @@ gt_ds_trains = [None]*n_allowed_train_filesTFR
...
@@ -162,6 +163,7 @@ gt_ds_trains = [None]*n_allowed_train_filesTFR
# Load maximum files from the list
# Load maximum files from the list
for
i
in
range
(
n_allowed_train_filesTFR
):
for
i
in
range
(
n_allowed_train_filesTFR
):
corr2d_trains
[
i
],
target_disparity_trains
[
i
],
gt_ds_trains
[
i
]
=
readTFRewcordsEpoch
(
train_filesTFR
[
i
])
corr2d_trains
[
i
],
target_disparity_trains
[
i
],
gt_ds_trains
[
i
]
=
readTFRewcordsEpoch
(
train_filesTFR
[
i
])
print_time
(
"Parsed "
+
train_filesTFR
[
i
])
corr2d_train
=
corr2d_trains
[
0
]
corr2d_train
=
corr2d_trains
[
0
]
target_disparity_train
=
target_disparity_trains
[
0
]
target_disparity_train
=
target_disparity_trains
[
0
]
...
@@ -446,6 +448,7 @@ with tf.Session() as sess:
...
@@ -446,6 +448,7 @@ with tf.Session() as sess:
for
epoch
in
range
(
EPOCHS_TO_RUN
):
for
epoch
in
range
(
EPOCHS_TO_RUN
):
train_file_index
=
epoch
%
n_allowed_train_filesTFR
train_file_index
=
epoch
%
n_allowed_train_filesTFR
print
(
"train_file_index: "
+
str
(
train_file_index
))
if
epoch
%
10
==
0
:
if
epoch
%
10
==
0
:
...
...
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