Data Loading Helper Classes and Types
This notebook contains helper classes and types for loading data from media datasets.
DataLoader
DataLoader (path:Union[str,pathlib.Path], metadata_file_name:Optional[str]=None, custom_data_loader:Union[Callable,str,NoneType]=None)
Load data from a file or a directory of files, while keeping track of the metadata.
| Type | Default | Details | |
|---|---|---|---|
| path | Union | path to the file or directory | |
| metadata_file_name | Optional | None | name of the metadata file |
| custom_data_loader | Union | None | custom data loader function or name of module with custom data loader |
| Returns | DataLoader |