Last active
November 20, 2022 05:36
-
-
Save ugo-nama-kun/9bfb435c99f503c40e2765819c6272ff to your computer and use it in GitHub Desktop.
Deconvolution の出力サイズを計算するやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def deconvsize(w_in, k, stride, pad, output_pad): | |
return (w_in - 1) * stride - 2 * pad + k + output_pad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from
https://qiita.com/kamata1729/items/41adf8b99a7ce070f79a
and
https://pytorch.org/docs/stable/generated/torch.nn.ConvTranspose2d.html#torch.nn.ConvTranspose2d