deepdisc.model.loaders
Classes
Base class that will map data to the format necessary for the model |
|
Class that will map COCO dictionary data to the format necessary for the model |
Functions
|
|
|
Returns a train loader |
|
Returns a test loader with configurable batch size |
|
Module Contents
- class DataMapper(imreader=None, key_mapper=None, augmentations=None)[source]
Base class that will map data to the format necessary for the model
To implement a data mapper for a new class, the derived class needs to have an __init__() function that calls super().__init__(*args, **kwargs) and a custom version of map_data().
- class DictMapper(*args, keypoint_hflip_indices=None, **kwargs)[source]
Bases:
DataMapperClass that will map COCO dictionary data to the format necessary for the model
- return_train_loader(cfg, mapper)[source]
Returns a train loader
- Parameters:
cfg (LazyConfig) – The lazy config, which contains data loader config values
functionality (**kwargs for the read_image)
- Return type:
a train loader