From 3207a3c2bde29189d3fa1a371920841ba5b12734 Mon Sep 17 00:00:00 2001
From: Elie KHOURY <elie.khoury@idiap.ch>
Date: Mon, 6 Jul 2015 09:09:48 +0200
Subject: [PATCH] Revert "reverse changes in bob/bio/base/tools/algorithm.py"

This reverts commit a256995b8d16846b185195ddabe774f71df12102.
---
 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 8c53028b..86443e51 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