the rotation detection
# Requirement
```bash
torch==1.6
shapely==1.7.1
opencv==4.2.0.34
```
# inference
you can download the weights [BaiduYun](https://pan.baidu.com/s/1l7AwoT78tQEQ-K_vOJobQQ)(password is 4ud5) or [GoogleDrive](https://drive.google.com/drive/folders/1McWvzy_UAUCOBFmzjzawVqC0KroSLmEy?usp=sharing) for ship detection by my dataset(not DOTA) to test the demo.
```bash
$ python detect.py
```
![image](result.png)
# train
## what format my model need
Not much different from yolo dataset,just add an __angle__ and we define the box attribute w is always __longer__ than h!
So wo define the box label is (cls, c_x, c_y, Longest side,short side, angle)
Attention!we define angle is a classify question,so we define 180 classes for angle.
For Example:
![image](rbox.png)
Range for angle is [-90,90), so wo should __add__ __90__ in angle while make your dataset label and then your label's Range should be [0,179)
![image](label_format.png)
## modify yaml
models/yolov5m.yaml: set nc to your dataset class num;
data/wheat0.yaml:set nc to your dataset class num, and set names to your dataset class name;
```bash
$ python train.py
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
目标检测_使用yolov5进行旋转目标检测_优质项目_训练+推理.zip (69个子文件)
目标检测_使用yolov5进行旋转目标检测_优质项目_训练+推理
inference
images
1.tif 3MB
add_edge.py 702B
retanglelabel2mylabel.py 5KB
weights
download_weights.sh 245B
data
coco128.yaml 1KB
wheat0.yaml 608B
hyp.finetune.yaml 846B
coco.yaml 2KB
voc.yaml 735B
hyp.scratch.yaml 2KB
scripts
get_voc.sh 5KB
get_coco.sh 926B
LICENSE 34KB
hubconf.py 3KB
utils
evolve.sh 747B
__init__.py 0B
yolo_anchors.txt 63B
google_utils.py 5KB
kmeans_for_anchors.py 8KB
general.py 67KB
activations.py 2KB
google_app_engine
Dockerfile 821B
app.yaml 173B
additional_requirements.txt 105B
datasets.py 39KB
__pycache__
torch_utils.cpython-38.pyc 9KB
datasets.cpython-38.pyc 27KB
google_utils.cpython-38.pyc 3KB
general.cpython-38.pyc 48KB
__init__.cpython-38.pyc 136B
torch_utils.py 9KB
sotabench.py 14KB
convertor
fold0
labels
train2017.npy 2.41MB
images
val2017.shapes 200B
train2017.shapes 7KB
.idea
misc.xml 300B
inspectionProfiles
Project_Default.xml 410B
profiles_settings.xml 174B
yolov5-master.iml 486B
modules.xml 278B
.gitignore 176B
result.png 1.2MB
Dockerfile 2KB
requirements.txt 542B
models
hub
yolov5-panet.yaml 1KB
yolov3-spp.yaml 1KB
yolov5-fpn.yaml 1KB
__init__.py 0B
export.py 4KB
yolov5m.yaml 1KB
yolov5s.yaml 1KB
yolov5l.yaml 1KB
common.py 5KB
experimental.py 5KB
__pycache__
experimental.cpython-38.pyc 6KB
common.cpython-38.pyc 7KB
yolo.cpython-38.pyc 9KB
__init__.cpython-38.pyc 137B
yolov5x.yaml 1KB
yolo.py 12KB
detect.py 8KB
label_format.png 32KB
train.py 27KB
__pycache__
test.cpython-38.pyc 8KB
test.py 13KB
test2.jpg 1.35MB
README.md 1KB
tutorial.ipynb 3.12MB
rbox.png 31KB
共 69 条
- 1
资源评论
极智视界
- 粉丝: 2w+
- 资源: 1459
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 微信小程序 - 同乐居商城:购物车合算源码
- 1、根据输入的三条边值判断能组成何种三角形,并设计测试数据进行判定覆盖测试 三条边为变量a、b、c,范围为1≤边值≤10,不在范
- SQL server 练习题目8道(小白教学).zip
- Python 手写实现 iD3 决策树算法-根据信息增益公式.zip
- 411675952289057车联助手-小窗版(三星)3.5.1.apk
- 三种快速排序方法合并在一个文件中以便直接运行的Python代码示例
- 937712277954201实习5.word
- 2程序语言基础知识pdf1_1716337722703.jpeg
- 简单的Python示例,演示了如何使用TCP/IP协议进行基本的客户端和服务器通信
- 考试.sql
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功