how to augment image data only for a specific class?

4 ビュー (過去 30 日間)
Casio Uploader
Casio Uploader 2019 年 12 月 22 日
回答済み: Mahmoud Afifi 2020 年 1 月 7 日
I have a dataset of three class labeled as '0','1' and '3' stored in folder 'dataset'. The number of sample for the class '0' very less compare to other two class. If I use 'imageDataAugmenter' to augment data, It augments for all classes that doesn't solve my imblance problem.
Can anyone help me to advice any way that I can augment data for only class '0'.
Note: The three class data is in three differnt sub-folder within the main folder 'dataset'.

回答 (2 件)

Greg Heath
Greg Heath 2020 年 1 月 1 日
Separate class 0 and interpolate. If you have a good feel for the data you could extrapolate. However the latter might be tricky.
Hope this helps.
Greg

Mahmoud Afifi
Mahmoud Afifi 2020 年 1 月 7 日
You can use a custom function to augment the data of this class before training. You can try this one if the problem is related to natural images: https://www.mathworks.com/matlabcentral/fileexchange/72966-wb-color-augmenter?s_tid=prof_contriblnk

カテゴリ

Help Center および File ExchangeRecognition, Object Detection, and Semantic Segmentation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by