Azzera filtri
Azzera filtri

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

5 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by