当前位置:网站首页>旋转框目标检测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),
...
边栏推荐
- Questions d'entrevue
- How to create an instance of the control defined in SAP ui5 XML view at runtime?
- Duplicate keys detected: ‘0‘. This may cause an update error. found in
- 使用 useDeferredValue 进行异步渲染
- After marriage
- 结婚后
- 【liuyubobobo-玩转Leetcode算法面试】【00】课程概述
- What kind of good and cost-effective Bluetooth sports headset to buy
- 附加:信息脱敏;
- 自定义组件的 v-model
猜你喜欢

Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing

【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度
![[opencv] - comprehensive examples of five image filters](/img/c7/aec9f2e03a17c22030d7813dd47c48.png)
[opencv] - comprehensive examples of five image filters

The basic steps of using information theory to deal with scientific problems are

Mongodb non relational database

Coordinatorlayout + tablayout + viewpager2 (there is another recyclerview nested inside), and the sliding conflict of recyclerview is solved

研发中台拆分过程的一些心得总结

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

Comparative analysis of MVC, MVP and MVVM, source code analysis

Remote connection to MySQL under windows and Linux system
随机推荐
oracle创建只读权限的用户简单四步走
实现一个自定义布局的扫码功能
超图iServer rest服务之feature查询
What is the principle of bone conduction earphones and who is suitable for bone conduction earphones
2022-2028 global nano abrasive industry research and trend analysis report
Basic 01: print string
AcWing 245. Can you answer these questions (line segment tree)
Jvm-01 (phased learning)
Pychart creates new projects & loads faster & fonts larger & changes appearance
Use the open source project [banner] to achieve the effect of rotating pictures (with dots)
Es interview questions
批量检测url是否存在cdn—高准确率
CVPR 2022 | 大连理工提出自校准照明框架,用于现实场景的微光图像增强
What is the difference between an intermediate human resource manager and an intermediate economist (human resources direction)?
[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)
使用 useDeferredValue 进行异步渲染
Comparative analysis of MVC, MVP and MVVM, source code analysis
How does proxy IP participate in the direct battle between web crawlers and anti crawlers
MongoDB非關系型數據庫
Actual battle of financial risk control - under Feature Engineering