Data Augmentation not working
8 views (last 30 days)
I'm trying to do data augmentation using 'ImageDataAugmenter' on a PixelLabelImageDatastore but the rate of my training is not decreasing (as it should if more images are added).
I'm not getting any error but the my training progress shows the same number of iterations and epochs as my non-augmented dataset.
This is my code:
imageAugmenter = imageDataAugmenter( ...
'RandXTranslation',[-10 10], ...
augimds = pixelLabelImageDatastore(imds,pxds,'DataAugmentation',imageAugmenter,'OutputSize',imageSize)
trainedNet_aug = trainNetwork(augimds,lgraph,options)
Does Data augmentation add new images to the datastore? Because it still shows my original 300 images in the augimds variable.
Jyothis Gireesh on 18 Nov 2019
As per the MATLAB documentation for “imageDataAugmenter”, the augmented images are not saved to memory. So, the size of “augimds” would effectively remain the same in MATLAB workspace. But these images are used while training.
You may refer to the following link on “imageDataAugmenter” for any clarifications.