diff --git a/bob/bio/base/tools/algorithm.py b/bob/bio/base/tools/algorithm.py index 9d2aabbbd42d1a64dfaf8e6ab1a29b0f39bcffb8..86443e516be2f263954de85685966d367772d232 100644 --- a/bob/bio/base/tools/algorithm.py +++ b/bob/bio/base/tools/algorithm.py @@ -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) diff --git a/bob/bio/base/tools/scoring.py b/bob/bio/base/tools/scoring.py index dd2300c51076742048f68b5084c2e3d583ba8cb0..3d5a756c8bb1594d6d7ca4f87730b35dd2e28ba2 100644 --- a/bob/bio/base/tools/scoring.py +++ b/bob/bio/base/tools/scoring.py @@ -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: