From e06a4cf1470ea7c3aed11e24058fd0f9bbbe4cae Mon Sep 17 00:00:00 2001
From: Alain KOMATY <alain.komaty@idiap.ch>
Date: Wed, 19 Oct 2022 18:10:53 +0200
Subject: [PATCH] extracted the scalar form the table

---
 bob/learn/em/gmm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob/learn/em/gmm.py b/bob/learn/em/gmm.py
index 6c5e385..0583f1b 100644
--- a/bob/learn/em/gmm.py
+++ b/bob/learn/em/gmm.py
@@ -636,7 +636,7 @@ class GMMMachine(BaseEstimator):
             ]
         else:  # Legacy file version
             logger.info("Loading a legacy HDF5 machine file.")
-            n_gaussians = hdf5["m_n_gaussians"][()]
+            n_gaussians = hdf5["m_n_gaussians"][()][0]
             g_means = []
             g_variances = []
             g_variance_thresholds = []
-- 
GitLab