当前位置:网站首页>Rotating frame target detection mmrotate v0.3.1 learning model
Rotating frame target detection mmrotate v0.3.1 learning model
2022-07-02 02:45:00 【qq_ forty-one million six hundred and twenty-seven thousand six】
1、 We basically divide the model components into 5 Types
1、backbone: usually an FCN network to extract feature maps, e.g., ResNet, Swin.
2、neck: the component between backbones and heads, e.g., FPN, ReFPN.
3、head: the component for specific tasks, e.g., bbox prediction.
4、roi extractor: the part for extracting RoI features from feature maps, e.g., RoI Align Rotated.
5、loss: the component in head for calculating losses, e.g., FocalLoss, GWDLoss, and KFIoULoss.
2、 Develop new components
2.1 Add a new backbone
Here we have MobileNet As an example to show how to develop new components
1. Define a new backbone (e.g. MobileNet)
Create a new file mmrotate/models/backbones/mobilenet.py.
import torch.nn as nn
from mmrotate.models.builder import ROTATED_BACKBONES
@ROTATED_BACKBONES.register_module()
class MobileNet(nn.Module):
def __init__(self, arg1, arg2):
pass
def forward(self, x): # should return a tuple
pass
2.2 The import module
You can either add the following line to mmrotate/models/backbones/init.py
from .mobilenet import MobileNet
or alternatively add
custom_imports = dict(
imports=['mmrotate.models.backbones.mobilenet'],
allow_failed_imports=False)
To the configuration file , To avoid modifying the original code .
2.3. Use the backbone in your config file
model = dict(
...
backbone=dict(
type='MobileNet',
arg1=xxx,
arg2=xxx),
...
边栏推荐
- What is the function of the headphone driver
- [learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
- Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
- 【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
- SQL server calculates the daily average and annual average of the whole province
- Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
- What are the common proxy servers and what are the differences?
- Formatting logic of SAP ui5 currency amount display
- LFM信号加噪、时频分析、滤波
- Set status bar color
猜你喜欢

How to hide the scroll bar of scroll view in uniapp

2022-2028 global encryption software industry research and trend analysis report

CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes

Jvm-01 (phased learning)

MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent

Pychart creates new projects & loads faster & fonts larger & changes appearance

【带你学c带你飞】2day 第8章 指针(练习8.1 密码开锁)

LFM信号加噪、时频分析、滤波

Actual battle of financial risk control - under Feature Engineering

New programmer magazine | Li Penghui talks about open source cloud native message flow system
随机推荐
Ten minutes will take you in-depth understanding of multithreading - multithreaded teamwork: synchronous control
The middle element and the rightmost element of the shutter
Pytest testing framework
Mongodb non relational database
Software development life cycle -- waterfall model
Jvm-01 (phased learning)
大厂裁员潮不断,双非本科出身的我却逆风翻盘挺进阿里
Es interview questions
MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent
Use usedeferredvalue for asynchronous rendering
Realize the code scanning function of a custom layout
[liuyubobobo play with leetcode algorithm interview] [00] Course Overview
[learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
[pit] how to understand "parameter fishing"
[learn C and fly] day 5 chapter 2 program in C language (Exercise 2)
C # use system data. The split mixed mode assembly is generated for the "v2.0.50727" version of the runtime, and it cannot be loaded in the 4.0 runtime without configuring other information
Questions d'entrevue
Webgpu (I): basic concepts
2022-2028 global deep sea generator controller industry research and trend analysis report
使用开源项目【Banner】实现轮播图效果(带小圆点)