how to use multiple input layers in DAG net as shown in the figure
이전 댓글 표시
I have DAG graph with two paths of layers inside it.
I am planning to feed this DAG with two types of data (D1, D2) but I can't do it as the DAG in matlab accept just one input layer.
I need to form a layer such as:

I noticed that there is a custom network that can provide a network with multiple inputs but how can I connect between this network and DAG graph? or how could I use DAG with two inputs?
댓글 수: 4
Ben Hur
2017년 11월 26일
Ben Hur
2017년 11월 27일
Ville Laukkanen
2017년 12월 5일
This would be nice to have an answer to.
I have a similar situation with three image + three float-variables regression case. We're trying to estimate the output of an industrial process with images of material flows in from three different lines and their respective line-speed (float). I get the true output result much later. Would like to train the whole image regression thing together.
Maybe some modified version of LSTM would work or perhaps some funny layer which would decompose the input to six different layergraph-lines, but I can't find a way to do this in MatLab.
On Python Tensorflow there is the node structure and inputs given in dictionary (matlabs' struct). Would there be a way to do this in Matlab? - Input to several points in an layer graph.
Kenta
2020년 3월 29일
As of 2019b, you can use custom training loop which allows you to do multi-input CNN.
This shows a demo to classify images with two-path sequence layers using two kinds of input images.
채택된 답변
추가 답변 (5개)
Mahmoud Afifi
2019년 10월 28일
편집: Mahmoud Afifi
2019년 10월 29일
3 개 추천
I just released an example Matlab code of how to implemenet multiple-input CNN in Matlab 2019b. You can find it here:
please if it works for you, accept this answer.
댓글 수: 1
dinial utami
2020년 6월 14일
thank you for your helping Mr.
in the code you have share, has multiple input in layer. not in trainNetwork.
Mr, can you help if we has 3 input in different image for training set, we set 3 input layers, but we can't set 3 training set. in the reality we need 3 input layers, and 3 training set.
thank you Mr. Mahmoud Afifi
Shounak Mitra
2018년 10월 8일
2 개 추천
Hi Marcello and Arjun,
Support for multiple Input layers are not supported as of the 18b release. We are working on it and it should be available soon.
Thanks Shounak
댓글 수: 2
abir zendagui
2019년 1월 6일
Hi,
Is the multiple input layers are really supported now (In 18b)? if it' is the case ,how this is done please?
Bodo Rosenhahn
2019년 5월 16일
Hi,
are multiple input /output layers for DAG networks supported in 19a ? Can you provide an example ?
Bernhard Suhm
2017년 12월 12일
0 개 추천
Modeling DAG graphs with multiple inputs and/or outputs is currently not supported in our deep learning framework, but we are working on it. So hold your breath for one of the next releases.
댓글 수: 5
Mammo Image
2017년 12월 15일
@ Bernhard Suhm, So any alternative suggestion for now?
Sara Abdeldayem
2017년 12월 20일
Is it in 2018a?
Bernhard Suhm
2017년 12월 29일
It's our policy to not officially commit to functionality prior to the release date, but more support for DAG is planned for 18a.
Arjun Desai
2018년 6월 30일
Is it supported now?
Marcello Venzi
2018년 9월 20일
Hello, can you please comment if multiple input layers are now supported (as of maltab 2018b)? I could not find this option in the documentation.
Yanhui Guo
2018년 10월 24일
0 개 추천
In the DAGNetwork file, I found the property: InputLayerIndices. In the fasterrcnn, I also found two input for this network. I am wondering if matlab2018b has an indirect way to support multiple inputs? Thanks.
sinan salim
2020년 8월 4일
0 개 추천
hi is there any update to manage multi-input layer >>because i want use different classes each 2 classes have to be assign for separate input layer
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!