Skip to content
Snippets Groups Projects
Commit d509aee6 authored by Elie KHOURY's avatar Elie KHOURY
Browse files

added an if statment before loading projector (bis)

parent cd54354f
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment