Concatenation of 2 different feature maps of different dimension

조회 수: 4 (최근 30일)
Susama Bagchi
Susama Bagchi 2021년 3월 24일
편집: KALYAN ACHARJYA 2021년 3월 24일
Hi all,
In CNN, 2 feature maps have different dimensions, one is 32x32x1024 and another one is 16x16x2048. If I want to merge them without any change in the feature map, what will be the procedure?
I'm using MATLAB 2020b.
Thanks in advance

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 3월 24일
편집: KALYAN ACHARJYA 2021년 3월 24일
Have you refered the following links? (External Links)
If there is no other option left, you may have to choose from the following options -
  • Pad the feature 1 vector with zero to make both x & y are equal.
  • Make feature 2_modified=feature_2(1:2:end,1:2:end,:)
  • Resize any one, so that both can be perfectly concatenate
Hope it helps
  댓글 수: 2
Susama Bagchi
Susama Bagchi 2021년 3월 24일
Hi,
Thank you for your prompt reply. But I found that both the links are not for MATLAB.
In my case, I tried to upsample 16x16x2048 feature map. But to match the filter size if I use a convolution layer, it seems due to its weight the feature map is not the same. Is there any solution in this regard?
KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 3월 24일
편집: KALYAN ACHARJYA 2021년 3월 24일
Yes, these lines are not MATLAB, but you can get the idea, so that it can be implemented in MATLAB as well.

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

카테고리

Help CenterFile Exchange에서 Get Started with Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by