How to add an image augmentation layer?

조회 수: 3 (최근 30일)
Mona
Mona 2017년 11월 3일
Hi, I am using MATLAB for deep learning. And was wondering how to add an image augmentation layer after the imageInputLayer. I have read that I can use "Create Custom Layer with Learnable Parameters". But I am not sure how to do that. Anyone already tried it?
All I need is to be able to manipulate my input batches right before they are used for training. Specifically, I want to train the VGG-19 from scratch. And there every image is supposed to be rescaled randomly, cropped randomly, and reflected randomly at every epoch.
I found that
imageDataAugmenter
can do the trick for re-scaling the images for example. But the scaling the DataAugmenter applies messes up the aspect ratio of the images because there is an X-scale and Y-scale.
Any idea?
Thank you in advance!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by