Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanklut committed Dec 13, 2023
1 parent 60b056a commit 5c66b6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion datasets/augmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,11 +914,16 @@ def build_augmentation(cfg: CfgNode, mode: str = "train") -> list[T.Augmentation
Function to generate all the augmentations used in the inference and training process
Args:
cfg (CfgNode): config node
cfg (CfgNode): The configuration node containing the parameters for the augmentations.
mode (str): flag if the augmentation are used for inference or training
- Possible values are "train", "val", or "test".
Returns:
list[T.Augmentation | T.Transform]: list of augmentations to apply to an image
Raises:
NotImplementedError: If the mode is not one of "train", "val", or "test".
NotImplementedError: If the resize mode specified in the configuration is not recognized.
"""
augmentation: list[T.Augmentation | T.Transform] = []

Expand Down

0 comments on commit 5c66b6f

Please sign in to comment.