2023-2-7-openMMLab AI实战营 笔记(五)

MMDetection 项目概况

mmdetection工具包

MMDetection 运行环境搭建(基于OpenBayes计算平台))

openbayes计算平台的介绍:

新建容器

  1. 基本信息:

  1. 数据绑定:

使用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中的一些概念

使用MMDetection 训练模型,检测图像中水果

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值