当前位置:网站首页>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 .
边栏推荐
- Rslo: self supervised lidar odometer (real time + high precision, icra2022)
- Windwos10 installing sshd service
- Detailed explanation of PDB symbol library files
- Ordinary users use vscode to log in to SSH and edit the root file
- 技术分享| 融合调度中的广播功能设计
- mysql调优
- 维修记录导出的excel表格太大怎么办?
- 如何让 Dapper 支持 DateOnly 类型
- [untitled] error in installation dependency: refusing to install package with name "* * *" under a package
- Prometheus 2.28.0 新特性
猜你喜欢

Korean AI team plagiarizes the shock academic world! One tutor with 51 students, or plagiarism recidivist

iMile 利用 Zadig 多云环境周部署千次,跨云跨地域持续交付全球业务

OpenSSL certificate tool user manual

mysql调优

思科模拟器简单校园网设计,期末作业难度

维修记录导出的excel表格太大怎么办?

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

Ordinary users use vscode to log in to SSH and edit the root file

Don't build the wheel again. It is recommended to use Google guava open source tool class library. It is really powerful!

Cloud native (31) | kubernetes chapter kubernetes platform basic pre installed resources
随机推荐
Clickhouse database uses JDBC to store milliseconds and nanoseconds
Detailed explanation of PDB symbol library files
Design of commodity search engine recommendation system
College girls wear cheongsam to defend! Netizen: the tutor said it would be nice if the paper were as beautiful as the cheongsam
[graduation season] it's worth it all the way over the past four years -- advice from the senior students
请问老师炒期货怎么设定安全线和安全边际?
C language memory function
PG Basics - logical structure management (1)
mysql调优
Discard Tkinter! Simple configuration to quickly generate cool GUI!
Tree array application (acwing 24224244)
Getting started with SQLite3
Shell judges whether the command is executed successfully
Server monitoring netdata panel configuring mail service
The former security director of Uber faced fraud allegations and concealed the data leakage event
Korean AI team plagiarizes the shock academic world! One tutor with 51 students, or plagiarism recidivist
weserver发布地图服务
WinDbg common commands
Memorized Function
Teach you how to install the latest version of mysql8.0 database on windows, nanny level teaching