필터 지우기
필터 지우기

Transfer learning without imresize or imageDatastore

조회 수: 1 (최근 30일)
Michael Benton
Michael Benton 2018년 8월 12일
편집: Michael Benton 2018년 9월 4일
For many samples of small images, it would be nice to load the data into RAM and perform transfer learning without using images on slower memory (imageDatastore). Unfortunately, if I had 50x50x1 images and had to resize to go with alexnet, I will be forced to use (50x50x1/227x227x3) ~ 1.6% of the number of samples in order to keep everything in RAM.
Does anyone know a fix? A custom layer that resizes would work, that's a lot of work though.
using 2017b

답변 (1개)

Shounak Mitra
Shounak Mitra 2018년 8월 20일
Hi Michael,
Thanks for your question.
If you need to resize, apply augmentedimagedatastore to your image datastore - it will be much faster than a custom readfcn, because it preserves prefetch under the hood. If you don’t need to resize, augment, or any other need for a custom readfcn, then vanilla imds is simplest.
Another option is to create a custom layer but you're right, it'll take some work.
HTH Shounak
  댓글 수: 1
Michael Benton
Michael Benton 2018년 9월 2일
편집: Michael Benton 2018년 9월 4일
https://www.mathworks.com/help/nnet/ref/augmentedimagedatastore.html according to this, that can be done. I have updated to 2018a, and this works, thanks

댓글을 달려면 로그인하십시오.

카테고리

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