当前位置:网站首页>mmrotate旋转目标检测框架使用记录
mmrotate旋转目标检测框架使用记录
2022-07-02 07:44:00 【小俊俊的博客】
mmrotate旋转目标检测框架使用记录
最近有旋转目标检测的需求了,在寻找旋转目标检测算法的过程中,发现已经有人提前测评了各类旋转目标检测框架了,结果是mmrorate效果最好。本次记录一下mmrorate的实验过程。
将持续更新实验记录!
主要参考:
1.测评参考:
https://blog.csdn.net/FL1623863129/article/details/123408354?utm_medium=distribute.pc_relevant.none-task-blog-2defaultbaidujs_title~default-4-123408354-blog-124335060.pc_relevant_multi_platform_whitelistv1&spm=1001.2101.3001.4242.3&utm_relevant_index=7
2.实现过程参考
https://blog.csdn.net/Sylvia_Lan/article/details/124008837
https://github.com/open-mmlab/mmrotate
https://sxj731533730.blog.csdn.net/article/details/124107625?spm=1001.2101.3001.6650.4&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-4-124107625-blog-124008837.pc_relevant_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-4-124107625-blog-124008837.pc_relevant_default&utm_relevant_index=6
https://blog.csdn.net/qq_43581224/article/details/123838415
一、配置环境
1.目前电脑已有环境
(1)Ubuntu20.04
(2)Cuda==11.2+cudnn
2.下载代码建立虚拟环境
(1)下载代码
https://github.com/open-mmlab/mmrotate
(2)建立虚拟环境
用pycharm打开该代码文件夹,并添加虚拟环境
(3)安装pytorch
进入pytorch官网,找到适合自己的版本,进行下载安装。
注:如果有小伙伴和我一样安装的是Cuda11.2,在pytorch官网上,无法找到对应版本时,可是试着安装cuda11.3对应的pytorch==1.11.0版本。
(4)安装mmrorate
pip install openmim
mim install mmrotate
二、测试
1.下载权重
权重模型集合
https://download.openmmlab.com/mmrotate/v0.1.0/kfiou/r3det_kfiou_ln_r50_fpn_1x_dota_oc/r3det_kfiou_ln_r50_fpn_1x_dota_oc-8e7f049d.pth
下载后,在mmrorate文件夹下,新建model文件夹,并放入model文件夹中。
2.运行demo
运行指令格式:
python demo/image_demo.py \
${
IMG_ROOT} \
${
CONFIG_FILE} \
${
CHECKPOINT_FILE}
IMG_ROOT:为待检测图像
CONFIG_FILE:为配置文件
CHECKPOINT_FILE:为训练好的权重。
pycharm终端cd道demo文件夹,输入
python3 image_demo.py demo.jpg ../configs/kfiou/r3det_kfiou_ln_r50_fpn_1x_dota_oc.py ../model/r3det_kfiou_ln_r50_fpn_1x_dota_oc-8e7f049d.pth
至此,可以确定整体环境没问题了。
边栏推荐
- I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)
- The most detailed MySQL installation tutorial
- 二叉树专题--AcWing 1497. 树的遍历(利用后、中序遍历,构建二叉树)
- 【AI应用】海康威视iVMS-4200软件安装
- [ark UI] implementation of the startup page of harmonios ETS
- 计算序列之和
- Special topic of binary tree -- acwing 47 Path with a certain value in binary tree (preorder traversal)
- JVM garbage collector
- Special topic of binary tree -- Logu p1229 traversal problem (the number of traversals in the middle order is calculated when the pre and post order traversals of the multiplication principle are know
- C#中索引器
猜你喜欢
JSP webshell免殺——JSP的基礎
V2X-Sim数据集(上海交大&纽约大学)
Win11 arm system configuration Net core environment variable
Use Huawei performance management service to configure the sampling rate on demand
JSP webshell free -- the basis of JSP
JVM之垃圾回收器
[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched
全网显示 IP 归属地,是怎么实现的?
华为AppLinking中统一链接的创建和使用
2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
随机推荐
JSP webshell free -- webshell free
Creation and use of unified links in Huawei applinking
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
Binary tree topic -- Luogu p3884 [jloi2009] binary tree problem (DFS for binary tree depth BFS for binary tree width Dijkstra for shortest path)
2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
Use Huawei performance management service to configure the sampling rate on demand
二叉树专题--【深基16.例7】普通二叉树(简化版)(multiset 求前驱 后继 哨兵法)
二叉树专题--AcWing 47. 二叉树中和为某一值的路径(前序遍历)
V2x SIM dataset (Shanghai Jiaotong University & New York University)
二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作
使用华为性能管理服务,按需配置采样率
华为游戏初始化init失败,返回错误码907135000
PCL point cloud to depth image
LVM操作
Special topic of binary tree -- acwing 3540 Binary search tree building (use the board to build a binary search tree and output the pre -, middle -, and post sequence traversal)
I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)
Why does LabVIEW lose precision in floating point numbers
static 函数中的静态变量
二叉树专题--洛谷 P3884 [JLOI2009]二叉树问题(dfs求二叉树深度 bfs求二叉树宽度 dijkstra求最短路)
Binary tree topic -- p1030 [noip2001 popularization group] find the first order