필터 지우기
필터 지우기

When using transposedConv2dLayer, how do you calculate the size of the output given an input?

조회 수: 5 (최근 30일)
Let's say you have an array of size [a b c] as input to a transposedConv2dLayer. What would be the output based on the stride, crop, and filter-size numbers?

채택된 답변

Matt J
Matt J 2023년 1월 12일
편집: Matt J 2023년 1월 13일
I believe it would be
newsize = [stride.*[a-1,b-1] + filtersize - 2*crop, numFilters]
  댓글 수: 4
Onur Kilic
Onur Kilic 2023년 1월 13일
Thanks. Also, it seems the following edited formula gives the correct sizes for the linked example:
newsize = [stride.*[a-1,b-1] + filtersize - 2*crop, numFilters]
If you agree with this formula, can you edit your first answer so that I can accept it? Could be useful for others.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by