当前位置:网站首页>旋转框目标检测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),
...
边栏推荐
- 使用 useDeferredValue 进行异步渲染
- MVVM and MVC
- 2022-2028 global manual dental cleaning equipment industry research and trend analysis report
- How to create an instance of the control defined in SAP ui5 XML view at runtime?
- Remote connection to MySQL under windows and Linux system
- 【带你学c带你飞】4day第2章 用C语言编写程序(练习 2.5 生成乘方表与阶乘表
- [learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)
- Kibana controls es
- Ten minutes will take you in-depth understanding of multithreading - multithreaded teamwork: synchronous control
- [staff] restore mark (Introduction to the use of restore mark | example analysis of Metaphone mark and restore mark)
猜你喜欢

2022-2028 global manual dental cleaning equipment industry research and trend analysis report

No programming code technology! Four step easy flower store applet

Leetcode question brushing (10) - sequential question brushing 46 to 50

Use usedeferredvalue for asynchronous rendering

Systemserver service and servicemanager service analysis
![[opencv] - comprehensive examples of five image filters](/img/c7/aec9f2e03a17c22030d7813dd47c48.png)
[opencv] - comprehensive examples of five image filters
![[learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table](/img/f4/298f64c4b4f8674eda4e8fb19a976a.png)
[learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table

2022-2028 global soft capsule manufacturing machine industry research and trend analysis report
![[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)](/img/8e/a86a9724251718d98ce172a6a96e53.png)
[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)
![[pit] how to understand](/img/e9/f5315a03b6f3da07021f915bb18af8.jpg)
[pit] how to understand "parameter fishing"
随机推荐
QT实现界面跳转
Query word weight, search word weight calculation
Quality means doing it right when no one is looking
Multi threaded query, double efficiency
[staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
The middle element and the rightmost element of the shutter
oracle创建只读权限的用户简单四步走
Summary of some experiences in the process of R & D platform splitting
LeetCode刷题(十)——顺序刷题46至50
自定义组件的 v-model
Cesium dynamic diffusion point effect
flutter 中間一個元素,最右邊一個元素
【无标题】
STM32__ 05 - PWM controlled DC motor
Stdref and stdcref
Yyds dry goods inventory accelerating vacuum in PG
Comparative analysis of MVC, MVP and MVVM, source code analysis
Email picture attachment
CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes
Kibana操控ES