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.base
Commits
d509aee6
Commit
d509aee6
authored
Jul 03, 2015
by
Elie KHOURY
Browse files
added an if statment before loading projector (bis)
parent
cd54354f
Changes
2
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/tools/algorithm.py
View file @
d509aee6
...
...
@@ -200,7 +200,8 @@ def enroll(algorithm, extractor, compute_zt_norm, indices = None, groups = ['dev
# the file selector object
fs
=
FileSelector
.
instance
()
# read the projector file, if needed
algorithm
.
load_projector
(
fs
.
projector_file
)
if
algorithm
.
requires_projector_training
:
algorithm
.
load_projector
(
fs
.
projector_file
)
# read the model enrollment file
algorithm
.
load_enroller
(
fs
.
enroller_file
)
...
...
bob/bio/base/tools/scoring.py
View file @
d509aee6
...
...
@@ -246,7 +246,8 @@ def compute_scores(algorithm, compute_zt_norm, force = False, indices = None, gr
fs
=
FileSelector
.
instance
()
# load the projector and the enroller, if needed
algorithm
.
load_projector
(
fs
.
projector_file
)
if
algorithm
.
requires_projector_training
:
algorithm
.
load_projector
(
fs
.
projector_file
)
algorithm
.
load_enroller
(
fs
.
enroller_file
)
for
group
in
groups
:
...
...
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