From cd54354f07653ac5932175f735deef0938440fa5 Mon Sep 17 00:00:00 2001 From: Elie KHOURY <elie.khoury@idiap.ch> Date: Fri, 3 Jul 2015 15:51:50 +0200 Subject: [PATCH] added an if statment before loading projector --- bob/bio/base/tools/algorithm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bob/bio/base/tools/algorithm.py b/bob/bio/base/tools/algorithm.py index b6105d10..9d2aabbb 100644 --- a/bob/bio/base/tools/algorithm.py +++ b/bob/bio/base/tools/algorithm.py @@ -152,7 +152,8 @@ def train_enroller(algorithm, extractor, force = False): bob.io.base.create_directories_safe(os.path.dirname(fs.enroller_file)) # first, load the projector - algorithm.load_projector(fs.projector_file) + if algorithm.requires_projector_training: + algorithm.load_projector(fs.projector_file) # load training data train_files = fs.training_list('projected' if algorithm.use_projected_features_for_enrollment else 'extracted', 'train_enroller', arrange_by_client = True) -- GitLab