Skip to content

Commit

Permalink
augmentation cli options (#467)
Browse files Browse the repository at this point in the history
* augmentation cli options

* pre commit
  • Loading branch information
mselimata authored Aug 29, 2023
1 parent 2ceab5b commit caea6d0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion clinicadl/utils/cli_param/train_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,21 @@
data_augmentation = cli_param.option_group.data_group.option(
"--data_augmentation",
"-da",
type=click.Choice(["None", "Noise", "Erasing", "CropPad", "Smoothing"]),
type=click.Choice(
[
"None",
"Noise",
"Erasing",
"CropPad",
"Smoothing",
"Motion",
"Ghosting",
"Spike",
"BiasField",
"RandomBlur",
"RandomSwap",
]
),
# default=(),
multiple=True,
help="Randomly applies transforms on the training set.",
Expand Down
2 changes: 1 addition & 1 deletion docs/RandomSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Optional variables:
- `baseline` (bool) allows to only load `_baseline.tsv` files when set to `True`.
Sampling function: `choice`. Default: `False`.
- `data_augmentation` (list of str) is the list of data augmentation transforms applied to the training data.
Must be chosen in [`None`, `Noise`, `Erasing`, `CropPad`, `Smoothing`].
Must be chosen in[`None`, `Noise`, `Erasing`, `CropPad`, `Smoothing`, `Motion`, `Ghosting`, `Spike`, `BiasField`, `RandomBlur`, `RandomSwap`].
Sampling function: `fixed`. Default: `False`.
- `unnormalize` (bool) is a flag to disable min-max normalization that is performed by default.
Sampling function: `choice`. Default: `False`.
Expand Down

0 comments on commit caea6d0

Please sign in to comment.