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

3 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by