Filter löschen
Filter löschen

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

5 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

Matt J
Matt J am 12 Jan. 2023
Bearbeitet: Matt J am 13 Jan. 2023
I believe it would be
newsize = [stride.*[a-1,b-1] + filtersize - 2*crop, numFilters]
  4 Kommentare
Onur Kilic
Onur Kilic am 13 Jan. 2023
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by