How to use an image datastore for an image regression with custom pre-processing steps?
Show older comments
I want to train a deep learning network (CNN) for predicting numeric arrays (i.e., response variable) using input images and have followed this image-regression documentation example.
Please run the following command in the command window of MATLAB R2020a to access the release-specific documentation:
>> web(fullfile(docroot, 'deeplearning/ug/train-a-convolutional-neural-network-for-regression.html'))
The above example loads all images (after pre-processing) in a 4D-array in memory at once before network training. Loading 50k images is not feasible for me.
I have also checked the "augmentedImageDatastore," which resolves the memory issue. However, during pre-processing, I want to crop each image using individual crop parameters, which the "augmentedImageDatastore" does not support.
Please run the following command in the command window of MATLAB R2020a to access the release-specific documentation for "augmentedImageDatastore":
>> web(fullfile(docroot, 'deeplearning/ref/augmentedimagedatastore.html'))
Please suggest a workaround to achieve this workflow.
Accepted Answer
More Answers (0)
Categories
Find more on Preprocess Data for Deep Neural Networks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!