diff --git a/bob/bio/base/tools/algorithm.py b/bob/bio/base/tools/algorithm.py index 8c53028bc163405d5a448522cba927ed7fe29c09..86443e516be2f263954de85685966d367772d232 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)