Data¶
Data subpackage has data preprocessers and dataloader abstractions.
Scripts¶
You can use scripts typing catalyst-data in your terminal. For example:
$ catalyst-data tag2label --help
Augmentor¶
-
class
catalyst.data.augmentor.
Augmentor
(dict_key: str, augment_fn: Callable, input_key: str = None, output_key: str = None, **kwargs)[source]¶ Augmentation abstraction to use with data dictionaries.
-
__init__
(dict_key: str, augment_fn: Callable, input_key: str = None, output_key: str = None, **kwargs)[source]¶ Parameters: - dict_key (str) – key to transform
- augment_fn (Callable) – augmentation function to use
- input_key (str) –
augment_fn
input key - output_key (str) –
augment_fn
output key - **kwargs – default kwargs for augmentations function
-
-
class
catalyst.data.augmentor.
AugmentorCompose
(key2augment_fn: Dict[str, Callable])[source]¶ Compose augmentors.
Collate Functions¶
Dataset¶
Reader¶
Readers are the abstraction for your dataset. They can open an elem from the dataset and transform it to data, needed by your network. For example open image by path, or read string and tokenize it.