Feed data into Neural Networks file-by-file

조회 수: 2 (최근 30일)
Le Anh
Le Anh 2019년 10월 31일
답변: Joss Knight 2019년 11월 1일
Currently for training my neural network, I need to load a huge dataset and it costs almost available RAM in the computer. That's why the training step (using GPU) is very slow. The pseudo-code is following:
Loading and pre-processing dataset (300 files)
Training Neural Network
So how can I don't have to load all at one time, and will be loaded in time the neural network is being trained, like this:
For file in Dataset
Loading and pre-processing file
Training Neural Network
or
Training Neural network
At some epoch:
Loading and Pre-processing a file in dataset
Continue to train.
Does MATLAB currently support this feature?

답변 (1개)

Joss Knight
Joss Knight 2019년 11월 1일
Datastores are designed for precisely this purpose. It may be that you're after an imageDatastore processed by a transform.

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by