diff --git a/bob/bio/base/tools/algorithm.py b/bob/bio/base/tools/algorithm.py index b6105d105e5e4191c2bffea251b1140afd5c9828..9d2aabbbd42d1a64dfaf8e6ab1a29b0f39bcffb8 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)