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
4 files
+ 79
19
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -87,7 +87,11 @@ class RawDataLoader(_BaseRawDataLoader):
# to_pil_image(tensor).show()
# __import__("pdb").set_trace()
return tensor, dict(label=sample[1], name=sample[0]) # type: ignore[arg-type]
return tensor, dict(
label=sample[1],
name=sample[0],
radsign_bboxes=self.bbox_annotations(sample),
)
def label(self, sample: DatabaseSample) -> int:
"""Loads a single image sample label from the disk.
Loading