Data Augmentation not working

9 ビュー (過去 30 日間)
Hridayi
Hridayi 2019 年 11 月 14 日
回答済み: Mahmoud Afifi 2020 年 4 月 2 日
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.

採用された回答

Jyothis Gireesh
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 件のコメント
Hridayi
Hridayi 2019 年 11 月 18 日
So then how would we increase the "number" of augmentations? Is that just a matter increasing the amount of epochs that the training runs for?
Jyothis Gireesh
Jyothis Gireesh 2019 年 11 月 19 日

サインインしてコメントする。

その他の回答 (1 件)

Mahmoud Afifi
Mahmoud Afifi 2020 年 4 月 2 日
Check this augmenter.
It applies color augmentation and is shown to improve the accuracy for image classification and semantic segmentation. Check the paper for more details.

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by