From fc1526bd89589d07396dccfa0c8007ecf1eb4a7e Mon Sep 17 00:00:00 2001
From: Manuel Guenther <manuel.guenther@idiap.ch>
Date: Fri, 4 May 2012 15:54:42 +0200
Subject: [PATCH] Fixed bug that was introduced by parameter renaming.

---
 faceverify/dct_ubm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/faceverify/dct_ubm.py b/faceverify/dct_ubm.py
index 6e5827a..a2c1a38 100644
--- a/faceverify/dct_ubm.py
+++ b/faceverify/dct_ubm.py
@@ -106,8 +106,8 @@ def enrol(model_features, ubm, gmm_trainer):
 
 def stats(probe_feature, ubm):
   """Computes the UBM Statistics for the given feature vector"""
-  # compute the UBM stats for the given feature
-  feature = bob.io.Arrayset(probe_feature)
+  # compute the UBM stats for the given probe feature
+  probe_feature = bob.io.Arrayset(probe_feature)
   
   # Accumulate statistics
   gmm_stats = bob.machine.GMMStats(ubm.dim_c, ubm.dim_d)
-- 
GitLab