Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.video
Commits
7b58a90c
Commit
7b58a90c
authored
Jun 05, 2017
by
Manuel Günther
Browse files
Merge branch '9-algorithm-read_probe-should-be-removed' into 'master'
Removed read_probe Closes
#9
See merge request
!18
parents
4463b085
0a18fdaa
Pipeline
#10278
passed with stages
in 16 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/algorithm/Wrapper.py
View file @
7b58a90c
...
...
@@ -260,30 +260,6 @@ class Wrapper (bob.bio.base.algorithm.Algorithm):
"""
return
self
.
algorithm
.
read_model
(
filename
)
def
read_probe
(
self
,
filename
):
"""read_probe(filename) -> probe
Reads the probe using the algorithm's ``read_probe`` function to read the probe features of the single frames.
**Parameters:**
filename : str
The name of the frame container containing the probe file.
**Returns:**
probe : :py:class:`bob.bio.video.FrameContainer`
The frames of the probe file.
"""
# TODO: check if it is really necessary that we read other types than FrameContainers here...
try
:
if
self
.
compressed_io
:
return
utils
.
load_compressed
(
filename
,
self
.
algorithm
.
read_probe
)
else
:
return
utils
.
FrameContainer
(
bob
.
io
.
base
.
HDF5File
(
filename
),
self
.
algorithm
.
read_probe
)
except
IOError
:
return
self
.
algorithm
.
read_probe
(
filename
)
def
score
(
self
,
model
,
probe
):
"""score(model, probe) -> score
...
...
Write
Preview
Supports
Markdown
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