当前位置:网站首页>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
边栏推荐
- Introduction to easydl object detection port
- Laravel permission export
- [reading papers] deepface: closing the gap to human level performance in face verification. Deep learning starts with the face
- [reading some papers] introducing deep learning into the public horizon alexnet
- Redirection setting parameters -redirectattributes
- ROS learning-7 error in custom message or service reference header file
- Share three stories about CMDB
- [learning notes] xr872 GUI littlevgl 8.0 migration (file system)
- Introduction to arm Cortex-M learning
- [reading papers] dcgan, the combination of generating countermeasure network and deep convolution
猜你喜欢
Opencvsharp4 handwriting recognition
[open source] libinimini: a minimalist ini parsing library for single chip computers
Huawei equipment is configured with CE dual attribution
Introduction to armv8/armv9 - learning this article is enough
Image table solid line and dashed line detection
Understand HMM
05 tabbar navigation bar function
How to solve the problem of obtaining the time through new date() and writing out the difference of 8 hours between the database and the current time [valid through personal test]
An image is word 16x16 words: transformers for image recognition at scale
02 optimize the default structure of wechat developer tools
随机推荐
Basic exercise of test questions Yanghui triangle (two-dimensional array and shallow copy)
Chapter7-13_ Dialogue State Tracking (as Question Answering)
A real-time target detection model Yolo
Understanding and thinking about multi-core consistency
[reading papers] transformer miscellaneous notes, especially miscellaneous
Example 4 linear filtering and built-in filtering
[reading papers] comparison of deeplobv1-v3 series, brief review
ROS learning-6 detailed explanation of publisher programming syntax
Cumulative tax law: calculate how much tax you have paid in a year
Classification and summary of system registers in aarch64 architecture of armv8/arnv9
redis
[reading papers] deep learning face representation by joint identification verification, deep learning applied to optimization problems, deepid2
Termux SSH first shell start
在IDEA使用C3P0连接池连接SQL数据库后却不能显示数据库内容
Share three stories about CMDB
Sans certificate generation
Leetcode 473. Match to square [violence + pruning]
Paipai loan parent company Xinye quarterly report diagram: revenue of RMB 2.4 billion, net profit of RMB 530million, a year-on-year decrease of 10%
too old resource version,Code:410
Bai ruikai Electronic sprint Scientific Innovation Board: proposed to raise 360 million Funds, Mr. And Mrs. Wang binhua as the main Shareholder