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
9ceb0063
Commit
9ceb0063
authored
Aug 07, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new pattern
parent
2fbab86b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nn_ds_inmem4_tmp.py
nn_ds_inmem4_tmp.py
+2
-2
No files found.
nn_ds_inmem4_tmp.py
View file @
9ceb0063
...
@@ -42,7 +42,7 @@ SHUFFLE_EPOCH = True
...
@@ -42,7 +42,7 @@ SHUFFLE_EPOCH = True
NET_ARCH
=
3
# overwrite with argv?
NET_ARCH
=
3
# overwrite with argv?
#DEBUG_PACK_TILES = True
#DEBUG_PACK_TILES = True
SUFFIX
=
str
(
NET_ARCH
)
+
([
"R"
,
"A"
][
ABSOLUTE_DISPARITY
])
SUFFIX
=
str
(
NET_ARCH
)
+
([
"R"
,
"A"
][
ABSOLUTE_DISPARITY
])
MAX_TRAIN_FILES_TFR
=
1
MAX_TRAIN_FILES_TFR
=
4
#http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
#http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class
bcolors
:
class
bcolors
:
HEADER
=
'
\033
[95m'
HEADER
=
'
\033
[95m'
...
@@ -122,7 +122,7 @@ except IndexError:
...
@@ -122,7 +122,7 @@ except IndexError:
# if the path is a directory
# if the path is a directory
if
os
.
path
.
isdir
(
train_filenameTFR
):
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
]
train_filenameTFR
=
train_filesTFR
[
0
]
else
:
else
:
train_filesTFR
=
[
train_filenameTFR
]
train_filesTFR
=
[
train_filenameTFR
]
...
...
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