当前位置:网站首页>Problems in replacing RESNET convolution of mmdet with ghost convolution group
Problems in replacing RESNET convolution of mmdet with ghost convolution group
2022-06-29 13:48:00 【Hometown clouds and stars】
1.SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in pos
What this question means is python Chinese vs “\” Defined , The modified code contains this symbol in the file path It is likely to be an escape character , I made a mistake because of the comments copied from the Internet .
2.TypeError: FasterRCNN: ResNet: __init__() got an unexpected keyword argument‘dw_size’
This error is a prompt for unexpected characters , Generally, the error is reported because of protoc Version and python Version mismatch , So you can directly input the following commands in the terminal window to reinstall protoc:
pip install -U protobufI made this mistake because there is no definition dw_size This parameter , After modification .
3.ValueError: FasterRCNN: ResNet: out_channels must be divisible by groups
This error occurs because you cannot divide the number of input and output channels when grouping , Must be divisible . For a detailed explanation, you can take a look at this big guy's article :
python Basic course : Yes pytorch In the function of group Introduction to the function of parameters _ Programmer oyster's blog -CSDN Blog
https://blog.csdn.net/chengxun03/article/details/1054442234.RuntimeError: Given groups=1, weight of size 32 3 3 3, expected input[1, 224, 224, 3]
Or link up with the above problems , The probability of this problem is that the number of groups cannot be divided
5.RuntimeError: Sizes of tensors must match except in dimension 2. Got 198 and
This problem occurs because I use expand_as This method , The two tensor dimensions are different , in addition expand_as Only one-dimensional or n That's ok 1 Column .
6. RuntimeError: The expanded size of the tensor (272) must match the existing
And questions 5 Agreement , I have this problem because padding There is a wrong number , You cannot give integers directly , It can be used 3//2, This will not result in 272 and 270
7.pytorch How to look at all kinds of tensor data
You can take a look at this big guy's :
【pyTorch Basics 】(1) The data type of the tensor _ state Sir The blog of -CSDN Blog _ The data type of the tensor
https://blog.csdn.net/dgvv4/article/details/1241948838.RuntimeError: running_mean should contain 32 elements not 64
When doing convolution , Change the step size to 2 after , The size does not correspond well . Through a variety of print Understand the detailed process .
9. ResNet: 'list' object attribute 'append' is read-only
result.append('Senior'), You don't need an equal sign , Use append You can't take it with you at the back “=”.
10.'Bottleneck' object has no attribute 'convs'
There are no attributes in the residual block convs, Because I accidentally annotated .
11.PyTorch Medium contiguous Reading
I learned the principle of this method , See the article of the boss for details :
12.Sizes of tensors must match except in dimension 2. Got 50 and 100
Just like the problem above , Because it doesn't correspond well conv3 The number of input channels , Just modify it .
# width * scales,2022
self.conv3 = build_conv_layer(
self.conv_cfg,
out1111_channels,
self.planes * self.expansion,
kernel_size=1,
bias=False)After so many problems , I made a query and solved it myself , Findings will be resnet and ghostnet Basically, I know about it , The process of possible problem solving is the process of ascension .
Some students also want to resnet The ordinary convolution in the network is replaced by Ghost Grouping convolution , You can communicate in the comments section .
边栏推荐
- Korean AI team plagiarizes the shock academic world! One tutor with 51 students, or plagiarism recidivist
- grep 精确匹配
- Why is the integration of storage and computing a new direction of core making Collision school x Zhicun Technology
- Valueerror: only TF native optimizers are supported in Eagle mode
- Getting started with SQLite3
- System. Currenttimemillis() and system Nanotime() which is faster? Most people get the wrong answer!
- 力扣:合并两个有序链表
- Basic type variable declaration
- 开户可以在网上开么?能安全吗
- C language simulation to realize all character functions
猜你喜欢

matplotlib的imshow函数显示灰度图像要设置vmin和vmax2个参数

韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯

OpenSSL certificate tool user manual

Huawei machine learning service speech recognition function enables applications to paint "sound" and color

System.currentTimeMillis() 和 System.nanoTime() 哪个更快?大部分人都会答错!

Uncover the secret! Pay attention to those machines under the membership system!

CVPR上百人中招新冠,emoji成“呈堂证供”,M2 MBP被曝硬盘降速,今日更多大新闻在此...

Weserver publishing map service

Proteus simulation of buck switching power supply based on 51 single chip microcomputer

Yyds dry inventory solution sword finger offer: find the nearest common ancestor of two nodes in the binary tree
随机推荐
Yyds dry inventory solution sword finger offer: find the nearest common ancestor of two nodes in the binary tree
DeeCamp2022正式开营!李开复、张亚勤亲授大师课 | 创新事
【毕业季】这四年一路走来都很值得——老学长の忠告
Proteus simulation of buck switching power supply based on 51 single chip microcomputer
LeCun用62页论文公布未来十年研究计划:AI自主智能
Create an API rapid development platform, awesome!
Open source machine learning platform
Valueerror: only TF native optimizers are supported in Eagle mode
[graduation season · advanced technology Er] 10.76 million graduates, the most difficult employment season in history? I can't roll it up again. I lie down again and again. Where is the road?
weserver發布地圖服務
Memorized Function
打造一个 API 快速开发平台,牛逼!
C language character function
Clickhouse database uses JDBC to store milliseconds and nanoseconds
Repoptimizer: it's actually repvgg2
What if the excel table exported from the repair record is too large?
Discard Tkinter! Simple configuration to quickly generate cool GUI!
Weserver Publishing Map Service
urllib urllib2
*打卡算法*LeetCode 146. LRU 缓存 算法解析