当前位置:网站首页>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
边栏推荐
- Understand CRF
- Cumulative tax law: calculate how much tax you have paid in a year
- [reading papers] deepface: closing the gap to human level performance in face verification. Deep learning starts with the face
- too old resource version,Code:410
- Thesis reading - autovc: zero shot voice style transfer with only autoencoder loss
- Solution of depth learning for 3D anisotropic images
- Chapter7-10_ Deep Learning for Question Answering (1/2)
- Understanding and thinking about multi-core consistency
- 在IDEA使用C3P0连接池连接SQL数据库后却不能显示数据库内容
- Laravel permission export
猜你喜欢

Huawei equipment is configured with IP and virtual private network hybrid FRR
![[reading point paper] deeplobv3+ encoder decoder with Atlas separable revolution](/img/24/decef903cd618bf7bb7fea635ee62e.jpg)
[reading point paper] deeplobv3+ encoder decoder with Atlas separable revolution

Armv8-m learning notes - getting started

04路由跳转并携带参数

05 tabBar导航栏功能

ROS learning -5 how function packs with the same name work (workspace coverage)

Chapter7-12_ Controllable Chatbot

Think about the possibility of attacking secure memory through mmu/tlb/cache

Rough understanding of wechat cloud development

Barrykay electronics rushes to the scientific innovation board: it is planned to raise 360million yuan. Mr. and Mrs. Wang Binhua are the major shareholders
随机推荐
在IDEA使用C3P0连接池连接SQL数据库后却不能显示数据库内容
Linear, integer, nonlinear, dynamic programming
The precision of C language printf output floating point numbers
cmake_ example
[work with notes] MFC solves the problem that pressing ESC and enter will automatically exit
Basic exercises of test questions Fibonacci series
GMM Gaussian mixture model
Opencv 08 demonstrates the effect of opening and closing operations of erode, dilate and morphological function morphologyex.
What are the differences in cache/tlb?
Review the history of various versions of ITIL, and find the key points for the development of enterprise operation and maintenance
Exam23 named windows and simplified paths, grayscale conversion
在IDEA使用C3P0連接池連接SQL數據庫後卻不能顯示數據庫內容
Classification and summary of system registers in aarch64 architecture of armv8/arnv9
Common web page status return code crawler
[pytorch] kaggle image classification competition arcface + bounding box code learning
[Dest0g3 520迎新赛] 拿到WP还整了很久的Dest0g3_heap
Huawei equipment is configured with IP and virtual private network hybrid FRR
C language compressed string is saved to binary file, and the compressed string is read from binary file and decompressed.
04 route jump and carry parameters
Stm32f4 DMA Da sine wave generator keil5 Hal library cubemx