Commit 3c9a47a5 authored by Yannick DAYER's avatar Yannick DAYER Committed by Amir MOHAMMADI

Fixed the 'bob_data_folder' config key

parent 418c59d9
Pipeline #49850 failed with stage
in 8 minutes and 6 seconds
......@@ -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.
)
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment