diff --git a/bob/bio/face/config/database/replaymobile.py b/bob/bio/face/config/database/replaymobile.py index 6452a9041131cb575acc78fedd684b000b6010a7..e718f703a001e4951df9f91783421df07411634c 100644 --- a/bob/bio/face/config/database/replaymobile.py +++ b/bob/bio/face/config/database/replaymobile.py @@ -3,12 +3,11 @@ # Yannick Dayer <yannick.dayer@idiap.ch> """ - Replay-mobile CSV database interface instantiation + Replay-mobile CSV database interface instantiation """ -from bob.bio.face.database.replaymobile import ReplayMobileDatabase - - +from bob.bio.face.database.replaymobile import ReplayMobileBioDatabase +from bob.extension import rc import bob.core logger = bob.core.log.setup("bob.bio.face") @@ -18,4 +17,7 @@ if 'protocol' not in locals(): protocol = "grandtest" logger.debug(f"Instantiation of ReplayMobile bio database with protocol '{protocol}'") -database = ReplayMobileDatabase(protocol_name=protocol, protocol_definition_path="./csv_datasets/replay-mobile/") # TODO upload the csv files and remove this path. +database = ReplayMobileBioDatabase( + protocol_name=protocol, + protocol_definition_path=rc.get("bob_data_folder", "~/bob_data/"), # TODO upload the csv files and remove this path. +) diff --git a/bob/bio/face/database/replaymobile.py b/bob/bio/face/database/replaymobile.py index 693485e272111e41dd8714958d51564a26b9fefd..e53d88cdd7b869931492742fbdf9a7e49f68fab3 100644 --- a/bob/bio/face/database/replaymobile.py +++ b/bob/bio/face/database/replaymobile.py @@ -201,7 +201,7 @@ class FrameBoundingBoxAnnotationLoader(AnnotationsLoader): return annotated_samples -class ReplayMobileDatabase(CSVDataset): +class ReplayMobileBioDatabase(CSVDataset): """Database interface that loads a csv definition for replay-mobile Looks for the protocol definition files (structure of CSV files). If not @@ -217,7 +217,7 @@ class ReplayMobileDatabase(CSVDataset): protocol_definition_path: str or None Specifies a path to download the database definition to. - If None: Downloads and uses the ``bob_data`` config. + If None: Downloads and uses the ``bob_data_folder`` config. (See :py:fct:`bob.extension.download.get_file`) data_path: str or None