当前位置:网站首页>nn. Conv2d and nn Convtranspose2d differences
nn. Conv2d and nn Convtranspose2d differences
2022-06-13 02:32:00 【Prodigal son's private dishes】
nn.Conv2d and nn.ConvTranspose2d Parameter description and difference
1、nn.Conv2d(in_channels,out_channels,kernel_size,stride=1,padding=0,dilation=1,groups=1,bias=True)
in_channels: Input dimensions
out_channels: Output dimension
kernel_size: Convolution kernel size
stride: Step size
padding: repair 0
dilation:kernel spacing
groups(int, optional) : The number of blocked connections from the input channel to the output channel
nn.Conv2d The function is : Two dimensional convolution is performed on the input signal composed of multiple input planes .
Calculation formula of image size after convolution :N = (W − F + 2P )/S+1
w Is the original image size 、F Is the convolution kernel size 、P by padding size 、S It's the step length
2、nn.ConvTranspose2d The function of is to perform deconvolution
nn.ConvTranspose2d(in_channels, out_channels, kernel_size, stride=1, padding=0, output_padding=0, groups=1, bias=True, dilation=1)
padding(int or tuple, optional) - Each side of the input adds 0 The number of layers , Both height and width are increased 2*padding
output_padding(int or tuple, optional) - Output side supplement 0 The number of layers , Both height and width are increased padding
Output size calculation :
output = (input-1)stride+outputpadding -2padding+kernelsize
边栏推荐
- Termux SSH first shell start
- OpenCVSharpSample04WinForms
- [pytorch] kaggle image classification competition arcface + bounding box code learning
- Leetcode 926. Flip string to monotonically increasing [prefix and]
- About the fact that I gave up the course of "Guyue private room course ROS manipulator development from introduction to actual combat" halfway
- redis
- Superficial understanding of conditional random fields
- [analysis notes] source code analysis of siliconlabs efr32bg22 Bluetooth mesh sensorclient
- [pytorch] kaggle large image dataset data analysis + visualization
- ROS learning-7 error in custom message or service reference header file
猜你喜欢

柏瑞凯电子冲刺科创板:拟募资3.6亿 汪斌华夫妇为大股东

Understand speech denoising

Understand CRF

Laravel permission export

1、 Set up Django automation platform (realize one click SQL execution)

Image table solid line and dashed line detection

L1 regularization and its sparsity

05 tabbar navigation bar function

Stm32f4 DMA Da sine wave generator keil5 Hal library cubemx

Mean Value Coordinates
随机推荐
json,xml,txt
Resource arrangement
Gadgets: color based video and image cutting
Barrykay electronics rushes to the scientific innovation board: it is planned to raise 360million yuan. Mr. and Mrs. Wang Binhua are the major shareholders
Mbedtls migration experience
柏瑞凱電子沖刺科創板:擬募資3.6億 汪斌華夫婦為大股東
[reading point paper] deeplobv3+ encoder decoder with Atlas separable revolution
Redirection setting parameters -redirectattributes
Cumulative tax law: calculate how much tax you have paid in a year
speech production model
too old resource version,Code:410
Mean Value Coordinates
Branch and bound method, example sorting
[pytorch] kaggle large image dataset data analysis + visualization
Common web page status return code crawler
1000 fans ~
05 tabbar navigation bar function
Laravel permission export
哈夫曼树及其应用
[keras] train py