MMDetection 项目概况
mmdetection工具包
![](https://i-blog.csdnimg.cn/blog_migrate/7608d5251f6599b8876a4f984926786e.png)
![](https://i-blog.csdnimg.cn/blog_migrate/86b77937d8efa9b0ebdde8e917bbbd5a.png)
![](https://i-blog.csdnimg.cn/blog_migrate/252e3313f8c79f38b314bc66f29b1edd.png)
![](https://i-blog.csdnimg.cn/blog_migrate/e08c211da725c8c5272e78929c7cdb98.png)
![](https://i-blog.csdnimg.cn/blog_migrate/51bebf8ab52a8adeaf0fc328b9f14524.png)
MMDetection 运行环境搭建(基于OpenBayes计算平台))
openbayes计算平台的介绍:
新建容器
基本信息:
![](https://i-blog.csdnimg.cn/blog_migrate/d15d628cbe3b214a6741a2abe93a6863.png)
![](https://i-blog.csdnimg.cn/blog_migrate/462a86ba4c59fbce7111863187b98334.png)
数据绑定:
使用MMDetection 进行模型推理
# Author:yujunyu
# -*- codeing = utf-8 -*-
# @Time :2023/2/8 17:38
# @Author :yujunyu
# @Site :
# @File :test2.py
# @software: PyCharm
from mmdet.apis import init_detector, inference_detector, show_result_pyplot
config_file = 'mask_rcnn_r50_fpn_2x_coco.py'
checkpoints_file = 'mask_rcnn_r50_fpn_2x_coco_bbox_mAP-0.392__segm_mAP-0.354_20200505_003907-3e542a40.pth'
model = init_detector(config_file, checkpoints_file, device='cuda:0')
result = inference_detector(model, 'mmdet_demo.jpg')
show_result_pyplot(model, 'mmdet_demo.jpg', result)
介绍mmdetection中的一些概念
![](https://i-blog.csdnimg.cn/blog_migrate/c5933aa3085b7f378f28fee881fd92e2.png)
![](https://i-blog.csdnimg.cn/blog_migrate/8677afbc9633551972304c7f178babea.png)
![](https://i-blog.csdnimg.cn/blog_migrate/4848c07e35a50ec61bb5a5c08835b90c.png)
![](https://i-blog.csdnimg.cn/blog_migrate/1e5d0a92568d48d44e9ffeeb5b1545e3.png)
使用MMDetection 训练模型,检测图像中水果
![](https://i-blog.csdnimg.cn/blog_migrate/8c87dc871bfab413e17e29e1d894c36b.png)