How to combine multiple inputs and a single output in a datastore?

Hi,
As I know, a function of combine can make a datastore containing several datastores. But here, in order to use "trainnetwork" for deep learning, we have to use only one datastore. How can I seperate input datastores to the output one to train my network? I guess labels of input parts may have to be created.
I will use two inputs (images + numerical data) and one output (images) with unet which is already built in Matlab.
2020-01-07_1-31-04.jpg

3 Comments

Hi,
Is the size of numerical data same as input images?
If it is so, you can concatenate the numerical data with the input data in the third dimension (i.e. depth) and train your network.
same problem QQ
In my problem, the input images size and numerical data size are different.
you can use the function of data augment first, to make the size of your inputs the same, then you can concatenate

Sign in to comment.

Answers (1)

Hi Sungkun,
I found a similar Matlab answer related to your query. This answer explains how to create and combine datastores for multiple inputs.
You can use “imageDatastore” for input and output images. For numerical data, you can use “arrayDatastore or “tabularTextDatastoredepending on the format of your data.
I am also attaching the documentation link on various datastores for your reference.
Then use the “combine” function to combine multiple datastores into single datastores.
Hope it will be helpful!

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Products

Release

R2019b

Asked:

on 7 Jan 2020

Answered:

on 26 Mar 2025

Community Treasure Hunt

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

Start Hunting!