How to train a DAG with two inputs with a combined data store?
1 次查看(过去 30 天)
显示 更早的评论
I have combined two data stores using the code
imdsCombined = combine(Stream1_imds,Stream2_imds)
The two datastores are combined as 1x2 cell array. Each cell has one datastore as shown below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/823985/image.png)
Then I wanted to split the labels of combined datastore for training and testing using the function
[imdsTrain,imdsTest] = splitEachLabel(imdsCombined,numTrainFiles);
The above step is necessary to train the network using
kkt_net_transfer = trainNetwork(imdsTrain,Combined_lgraph,Stream1_opts);
But I got an error "Check for missing argument or incorrect argument data type in call to function 'splitEachLabel'".
This is because of the non availablity of the labels in the combined datastore. I couldn't attach lables to the combined datastore and it was not supported.
We can combine two image datastores in many ways. I tried those methods but they are not suitable to train the network using trainNetwork().
I have used MATLAB version 2020a. Is there any solution?
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!