From bf40cb44b87b78bed5dcc7381a7f7b07458fee1e Mon Sep 17 00:00:00 2001
From: Laurent COLBOIS <laurent.colbois@idiap.ch>
Date: Mon, 13 Sep 2021 18:52:51 +0200
Subject: [PATCH] [FRGC][Performance] Make FRGC memory_demanding; implement
 hash trick for checkpointing

---
 bob/bio/face/database/frgc.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bob/bio/face/database/frgc.py b/bob/bio/face/database/frgc.py
index 73731ff4..65315cce 100644
--- a/bob/bio/face/database/frgc.py
+++ b/bob/bio/face/database/frgc.py
@@ -13,6 +13,7 @@ from bob.extension import rc
 from bob.extension.download import get_file
 import bob.io.base
 from sklearn.pipeline import make_pipeline
+from bob.pipelines.utils import hash_string
 
 
 class FRGCDatabase(CSVDataset):
@@ -49,8 +50,11 @@ class FRGCDatabase(CSVDataset):
             fixed_positions=fixed_positions,
             allow_scoring_with_all_biometric_references=True,
             group_probes_by_reference_id=True,
+            memory_demanding=True,
         )
 
+        self.hash_fn = hash_string
+
     @staticmethod
     def protocols():
         # TODO: Until we have (if we have) a function that dumps the protocols, let's use this one.
-- 
GitLab