How to add an image augmentation layer?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!