Data Augmentation not working
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
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( ...
'RandRotation',[-10,10], ...
'RandXTranslation',[-10 10], ...
'RandYTranslation',[-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.
댓글 수: 0
채택된 답변
Jyothis Gireesh
2019년 11월 18일
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.
댓글 수: 2
Jyothis Gireesh
2019년 11월 19일
Please take a look at this link, which answers a very similar question
Hope this helps !!
추가 답변 (1개)
Mahmoud Afifi
2020년 4월 2일
It applies color augmentation and is shown to improve the accuracy for image classification and semantic segmentation. Check the paper for more details.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!