当前位置:网站首页>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),
...
边栏推荐
- Which brand of sports headset is better? Bluetooth headset suitable for sports
- essay structure
- 设置状态栏颜色
- 实现一个自定义布局的扫码功能
- 使用开源项目【Banner】实现轮播图效果(带小圆点)
- 多线程查询,效率翻倍
- 自定义组件的 v-model
- query词权重, 搜索词权重计算
- Actual battle of financial risk control - under Feature Engineering
- Is bone conduction earphone better than traditional earphones? The sound production principle of bone conduction earphones is popular science
猜你喜欢
Infix expression to suffix expression (computer) code
Pychart creates new projects & loads faster & fonts larger & changes appearance
Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
query词权重, 搜索词权重计算
Software development life cycle -- waterfall model
Additional: information desensitization;
Mongodb non relational database
Addition without addition, subtraction, multiplication and division (simple difficulty)
Is bone conduction earphone better than traditional earphones? The sound production principle of bone conduction earphones is popular science
2022-2028 global deep sea generator controller industry research and trend analysis report
随机推荐
Leetcode question brushing (10) - sequential question brushing 46 to 50
MongoDB非關系型數據庫
Kibana操控ES
[staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
CoordinatorLayout + TabLayout + ViewPager2(里面再嵌套一个RecyclerView),RecyclerView的滑动冲突解决
2022低压电工考试题模拟考试题库模拟考试平台操作
结婚后
About DNS
Realize the code scanning function of a custom layout
JS slow animation
2022-2028 global deep sea generator controller industry research and trend analysis report
What is the function of the headphone driver
[learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table
Is bone conduction earphone better than traditional earphones? The sound production principle of bone conduction earphones is popular science
2022安全员-C证考试题及模拟考试
Software development life cycle -- waterfall model
How to turn off the LED light of Rog motherboard
Divorce for 3 years to discover the undivided joint property, or
Mathematics in Sinorgchem: computational geometry
2022-2028 global aluminum beverage can coating industry research and trend analysis report