Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.tensorflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.learn.tensorflow
Commits
a3812701
There was a problem fetching the pipeline summary.
Commit
a3812701
authored
7 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
improve logging of predict_bio
parent
0e818979
No related branches found
No related tags found
1 merge request
!36
Use bob.extension to load config files
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/learn/tensorflow/dataset/bio.py
+4
-0
4 additions, 0 deletions
bob/learn/tensorflow/dataset/bio.py
bob/learn/tensorflow/script/predict_bio.py
+2
-1
2 additions, 1 deletion
bob/learn/tensorflow/script/predict_bio.py
with
6 additions
and
1 deletion
bob/learn/tensorflow/dataset/bio.py
+
4
−
0
View file @
a3812701
...
@@ -42,6 +42,7 @@ class BioGenerator(object):
...
@@ -42,6 +42,7 @@ class BioGenerator(object):
def
__init__
(
self
,
database
,
biofiles
,
load_data
=
None
,
def
__init__
(
self
,
database
,
biofiles
,
load_data
=
None
,
biofile_to_label
=
None
,
multiple_samples
=
False
):
biofile_to_label
=
None
,
multiple_samples
=
False
):
super
(
self
,
BioGenerator
).
__init__
()
if
load_data
is
None
:
if
load_data
is
None
:
def
load_data
(
database
,
biofile
):
def
load_data
(
database
,
biofile
):
data
=
read_original_data
(
data
=
read_original_data
(
...
@@ -95,6 +96,9 @@ class BioGenerator(object):
...
@@ -95,6 +96,9 @@ class BioGenerator(object):
def
output_shapes
(
self
):
def
output_shapes
(
self
):
return
self
.
_output_shapes
return
self
.
_output_shapes
def
__len__
(
self
):
return
len
(
self
.
biofiles
)
def
__call__
(
self
):
def
__call__
(
self
):
"""
A generator function that when called will return the samples.
"""
A generator function that when called will return the samples.
...
...
This diff is collapsed.
Click to expand it.
bob/learn/tensorflow/script/predict_bio.py
+
2
−
1
View file @
a3812701
...
@@ -231,7 +231,8 @@ def main(argv=None):
...
@@ -231,7 +231,8 @@ def main(argv=None):
checkpoint_path
=
checkpoint_path
,
checkpoint_path
=
checkpoint_path
,
)
)
logger
.
info
(
"
Saving the predictions in %s
"
,
output_dir
)
logger
.
info
(
"
Saving the predictions of %d files in %s
"
,
len
(
generator
),
output_dir
)
pool
=
Pool
()
pool
=
Pool
()
try
:
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment