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
54dda3d1
Commit
54dda3d1
authored
Aug 07, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. sort tfrecord lists
2. update tfrecord file name pattern
parent
9ceb0063
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
nn_ds_inmem4_tmp.py
nn_ds_inmem4_tmp.py
+3
-1
No files found.
nn_ds_inmem4_tmp.py
View file @
54dda3d1
...
...
@@ -122,11 +122,12 @@ except IndexError:
# if the path is a directory
if
os
.
path
.
isdir
(
train_filenameTFR
):
train_filesTFR
=
glob
.
glob
(
train_filenameTFR
+
"/*train*.tfrecords"
)
train_filesTFR
=
glob
.
glob
(
train_filenameTFR
+
"/*train
-
*.tfrecords"
)
train_filenameTFR
=
train_filesTFR
[
0
]
else
:
train_filesTFR
=
[
train_filenameTFR
]
train_filesTFR
.
sort
()
print
(
"Train tfrecords: "
+
str
(
train_filesTFR
))
# tfrecords' paths for testing
...
...
@@ -142,6 +143,7 @@ if os.path.isdir(test_filenameTFR):
else
:
test_filesTFR
=
[
test_filenameTFR
]
test_filesTFR
.
sort
()
print
(
"Test tfrecords: "
+
str
(
test_filesTFR
))
# Now we are left with 2 lists - train and test list
...
...
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