Effacer les filtres
Effacer les filtres

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

5 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

Matt J
Matt J le 12 Jan 2023
Modifié(e) : Matt J le 13 Jan 2023
I believe it would be
newsize = [stride.*[a-1,b-1] + filtersize - 2*crop, numFilters]
  4 commentaires
Onur Kilic
Onur Kilic le 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by