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
7 files
+ 283
96
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -4,6 +4,7 @@
"""Defines most common types used in code."""
import collections.abc
import typing
import torch
@@ -47,12 +48,11 @@ Typically used in data-processing pipelines inside pytorch.
TransformSequence = typing.Sequence[Transform]
"""A sequence of transforms."""
DatabaseSplit = dict[str, typing.Sequence[typing.Any]]
"""The definition of a database script.
DatabaseSplit = collections.abc.Mapping[str, typing.Sequence[typing.Any]]
"""The definition of a database split.
A database script maps subset names to sequences of objects that,
through RawDataLoader's eventually become Samples in the processing
pipeline.
A database split maps subset names to sequences of objects that, through
RawDataLoader's eventually become Samples in the processing pipeline.
"""
Loading