当前位置:网站首页>Sepconv (separable revolution) code recurrence
Sepconv (separable revolution) code recurrence
2022-07-03 18:21:00 【ZRX_ GIS】
import torch.nn as nn
class SP_conv(nn.Module):
def __init__(self, in_channels, out_channels, kernel=3, stride=1, dilation=1, bias=False):
super(SP_conv, self).__init__()
self.conv = nn.Conv2d(
in_channels, in_channels, kernel, stride, 0,
dilation, groups=in_channels, bias=bias
)
self.pixelwise = nn.Conv2d(
in_channels, out_channels, 1, 1, 0, 1, 1, bias=bias
)
def forward(self, x):
x = self.conv(x)
x = self.pixelwise(x)
return x
边栏推荐
- Use of unsafe class
- 4. Load balancing and dynamic static separation
- This diversion
- ES7 - Optimization of promise
- Niuke monthly race 31 minus integer
- A. Berland Poker &1000【简单数学思维】
- Line by line explanation of yolox source code of anchor free series network (6) -- mixup data enhancement
- The second largest gay dating website in the world was exposed, and the status of programmers in 2022
- (9) Opencv Canny edge detection
- Analysis report on production and marketing demand and investment forecast of China's PVC industry from 2021 to 2026
猜你喜欢
Mature port AI ceaspectus leads the world in the application of AI in terminals, CIMC Feitong advanced products go global, smart terminals, intelligent ports, intelligent terminals
Analysis of the reasons why enterprises build their own software development teams to use software manpower outsourcing services at the same time
(8) HS corner detection
Win32: analyse du fichier dump pour la défaillance du tas
How to track the real-time trend of Bank of London
The number of incremental paths in the grid graph [dfs reverse path + memory dfs]
English语法_名词 - 分类
Micro service component sentinel console call
Win 11 major updates, new features love love.
Should I be laid off at the age of 40? IBM is suspected of age discrimination, calling its old employees "dinosaurs" and planning to dismiss, but the employees can't refute it
随机推荐
[combinatorics] generating function (summation property)
The vscode code is automatically modified to a compliance code when it is formatted and saved
Fedora 21 installs lamp host server
Summary and Reflection on the third week of winter vacation
Module 9 operation
Sensor debugging process
How to deploy applications on kubernetes cluster
A. Odd Selection【BruteForce】
Redis core technology and practice - learning notes (VI) how to achieve data consistency between master and slave Libraries
基于人脸识别的课堂考勤系统 tkinter+openpyxl+face_recognition
win32:堆破坏的dump文件分析
OpenSSL的SSL/BIO_get_fd
OpenSSL的SSL/BIO_get_fd
Count the number of pixel values in the image
Keepalived 设置不抢占资源
Unsafe类的使用
A. Berland Poker &1000【简单数学思维】
PHP MySQL create database
PHP MySQL Update
Administrative division code acquisition