-
Hi, may I ask the example of how to add data augmentation to add more data to train patchcore? Cause it is the memory bank base algo, so I guess it is better to has lots of data for it. I could not find any documentation to create that yaml file. What I want to do:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hi, custom augmentations can be added to a training pipeline by providing the path to an albumentations config file in the Please note that there are a few mandatory transforms that you will always have to add to your custom transforms file. First of all, the So, for your use case, you could achieve your desired augmentations by setting
which was generated by running the following code:
|
Beta Was this translation helpful? Give feedback.
-
config.yaml
I don't know whether to call it like this ? |
Beta Was this translation helpful? Give feedback.
-
python tools/train.py --model cflow
|
Beta Was this translation helpful? Give feedback.
-
@samet-akcay Does this generate a separate augmented data set on the fly and add it to the original dataset or it replaces the original data set with the augmentations mentioned in the .yaml and if you could please explain by what factor? |
Beta Was this translation helpful? Give feedback.
Hi, custom augmentations can be added to a training pipeline by providing the path to an albumentations config file in the
dataset.transform_config
section of theconfig.yaml
. A different set of transforms/augmentations may be provided for the training and evaluation dataloaders. This page of the albumentations documentation explains how to create a.yaml
file.Please note that there are a few mandatory transforms that you will always have to add to your custom transforms file. First of all, the
Resize
andToTensorV2
transforms are always required, because these make sure that the images are passed to the model in the right format. In addition, for most models it is needed to normalize to…