From 071062c7f425d91c9fb4ed984eb627b0cecc7a58 Mon Sep 17 00:00:00 2001
From: Tiago Freitas Pereira <tiagofrepereira@gmail.com>
Date: Tue, 15 Dec 2020 16:35:48 +0100
Subject: [PATCH] Fixed eyes annotation issue

---
 bob/bio/face/database/sample_loaders.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/bob/bio/face/database/sample_loaders.py b/bob/bio/face/database/sample_loaders.py
index ef5871c2..607145ea 100644
--- a/bob/bio/face/database/sample_loaders.py
+++ b/bob/bio/face/database/sample_loaders.py
@@ -32,8 +32,14 @@ class EyesAnnotations(TransformerMixin, BaseEstimator):
         annotated_samples = []
         for x in X:
             eyes = {
-                "leye": (find_attribute, (x, "leye_x"), find_attribute(x, "leye_y")),
-                "reye": (find_attribute(x, "reye_x"), find_attribute(x, "reye_y")),
+                "leye": (
+                    float(find_attribute(x, "leye_x")),
+                    float(find_attribute(x, "leye_y")),
+                ),
+                "reye": (
+                    float(find_attribute(x, "reye_x")),
+                    float(find_attribute(x, "reye_y")),
+                ),
             }
 
             sample = DelayedSample(x._load, parent=x, annotations=eyes)
-- 
GitLab