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.pad.base
Commits
c9b2ecc3
Commit
c9b2ecc3
authored
Mar 21, 2018
by
Guillaume HEUSCH
Browse files
[algorithm] fixed the import to convert and prepare feature, and the single score for one sequence
parent
f1f528e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/algorithm/OneClassGMM.py
View file @
c9b2ecc3
...
...
@@ -18,7 +18,7 @@ import bob.io.base
from
sklearn
import
mixture
from
bob.pad.base.utils
import
convert_frame_cont_to_array
,
mean_std_normalize
from
bob.pad.base.utils
import
convert_frame_cont_to_array
,
mean_std_normalize
,
convert_and_prepare_features
# ==============================================================================
# Main body :
...
...
@@ -184,7 +184,7 @@ class OneClassGMM(Algorithm):
"""
# training_features[0] - training features for the REAL class.
real
=
self
.
convert_and_prepare_features
(
real
=
convert_and_prepare_features
(
training_features
[
0
])
# output is array
# training_features[1] - training features for the ATTACK class.
...
...
@@ -347,6 +347,8 @@ class OneClassGMM(Algorithm):
If ``frame_level_scores_flag = True`` a list of scores is returned.
One score per frame/sample.
"""
if
toscore
.
ndim
==
1
:
return
[
toscore
[
0
]]
if
self
.
frame_level_scores_flag
:
...
...
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