Skip to content
Snippets Groups Projects
Commit 52b76394 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[data.nih_cxr14] Fix configuration variable names

parent ed996fb9
No related branches found
No related tags found
1 merge request!6Making use of LightningDataModule and simplification of data loading
Pipeline #76683 failed
......@@ -29,7 +29,7 @@ class RawDataLoader(_BaseRawDataLoader):
idiap_file_organisation
This variable will be ``True``, if the user has set the configuration
parameter ``nih_cxr14_re.idiap_file_organisation`` in the global
parameter ``nih_cxr14.idiap_file_organisation`` in the global
configuration file. It will cause internal loader to search for files
in a slightly different folder structure, that was adapted to Idiap's
requirements (number of files per folder to be less than 10k).
......@@ -40,11 +40,9 @@ class RawDataLoader(_BaseRawDataLoader):
def __init__(self):
rc = load_rc()
self.datadir = rc.get(
"datadir.nih_cxr14_re", os.path.realpath(os.curdir)
)
self.datadir = rc.get("datadir.nih_cxr14", os.path.realpath(os.curdir))
self.idiap_file_organisation = rc.get(
"nih_cxr14_re.idiap_folder_structure", False
"nih_cxr14.idiap_folder_structure", False
)
def sample(self, sample: tuple[str, list[int]]) -> Sample:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment