Skip to content
Snippets Groups Projects

Making use of LightningDataModule and simplification of data loading

Merged Daniel CARRON requested to merge add-datamodule into main
Compare and Show latest version
10 files
+ 259
426
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -21,9 +21,10 @@ def make_split(basename: str) -> DatabaseSplit:
class DataModule(CachingDataModule):
"""Indian collection dataset for computer-aided diagnosis.
The Indian collection database has been established to foster research
in computer-aided diagnosis of pulmonary diseases with a special
focus on pulmonary tuberculosis (TB).
The Indian collection database has been established to foster research in
computer-aided diagnosis of pulmonary diseases with a special focus on
pulmonary tuberculosis (TB). This database is also known as the "Database
A/Database B" database.
* Original images PNG, 8-bit grayscale, 1024 x 1024 pixels
* Split reference: [INDIAN-2013]_ with 20% of train set for the validation set
@@ -54,5 +55,5 @@ class DataModule(CachingDataModule):
def __init__(self, split_filename: str):
super().__init__(
database_split=make_split(split_filename),
raw_data_loader=RawDataLoader(),
raw_data_loader=RawDataLoader(config_variable="datadir.indian"),
)
Loading