CNN error using deep network designer

조회 수: 12(최근 30일)
Teo
Teo 2021년 9월 21일
편집: Teo 2021년 10월 2일
Hi,
i trying to combine certain part of the two CNN into one model using addition layer. However, there seem to be error while analyzing the combined models using deep network designer.
Thank you.

채택된 답변

Katja Mogalle
Katja Mogalle 2021년 9월 22일
Hi Teo,
As you already noticed, the shufflenet branch results in 544 channels and the resnet18 branch results in 512 channels. You could map one of those branches (e.g. shufflenet branch) to the number of filters of the other branch (e.g. resnet18) by using a convolution2dLayer with filter size [1 1] and 512 filters. Then you should be able to do the addition.
I don't know the details of what you're doing and what the two branches are supposed to do, but I wonder if a concatenationLayer would be the better choice here to combine the two branches.
I hope this helps.
Katja
  댓글 수: 3
Teo
Teo 2021년 9월 23일
I really appreciate your suggestion and clarification on the confusion. Thank you very much.

댓글을 달려면 로그인하십시오.

추가 답변(0개)

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by