当前位置:网站首页>旋转框目标检测mmrotate v0.3.1 学习模型
旋转框目标检测mmrotate v0.3.1 学习模型
2022-07-02 02:44:00 【qq_41627642】
1、我们基本上将模型组件分为5种类型
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、开发新的组件
2.1 Add a new backbone
这里我们以MobileNet为例展示如何开发新组件
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 导入模块
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)
到配置文件,以避免修改原始代码。
2.3. Use the backbone in your config file
model = dict(
...
backbone=dict(
type='MobileNet',
arg1=xxx,
arg2=xxx),
...
边栏推荐
- query词权重, 搜索词权重计算
- [question 008: what is UV in unity?]
- What are the characteristics of common web proxy IP
- [liuyubobobo play with leetcode algorithm interview] [00] Course Overview
- [road of system analyst] collection of wrong topics in enterprise informatization chapter
- 【无标题】
- 超图iServer rest服务之feature查询
- Use the open source project [banner] to achieve the effect of rotating pictures (with dots)
- Basic 01: print string
- 设置状态栏颜色
猜你喜欢

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

After marriage

How to batch add background and transition effects to videos?

Summary of some experiences in the process of R & D platform splitting

【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)

Mongodb base de données non relationnelle

New programmer magazine | Li Penghui talks about open source cloud native message flow system

Which brand of running headphones is good? How many professional running headphones are recommended

连通块模板及变式(共4题)

Systemserver service and servicemanager service analysis
随机推荐
CoordinatorLayout + TabLayout + ViewPager2(里面再嵌套一个RecyclerView),RecyclerView的滑动冲突解决
Feature query of hypergraph iserver rest Service
[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)
How to run oddish successfully from 0?
QT uses sqllite
es面試題
【无标题】
2022 low voltage electrician test question simulation test question bank simulation test platform operation
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
Mongodb base de données non relationnelle
Missing numbers from 0 to n-1 (simple difficulty)
[Chongqing Guangdong education] Sichuan University concise university chemistry · material structure part introductory reference materials
【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度
Share the basic knowledge of a common Hongmeng application
[learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
Deployment practice and problem solving of dash application development environment based on jupyter Lab
JS slow animation
附加:信息脱敏;
Provincial election + noi Part IV graph theory
flutter 中間一個元素,最右邊一個元素