日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人工智能 > 目标检测 >内容正文

目标检测

【Faster RCNN detectron2】detectron2实现Faster RCNN目标检测

發(fā)布時間:2025/3/11 目标检测 78 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【Faster RCNN detectron2】detectron2实现Faster RCNN目标检测 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

目錄

  • 1. 背景介紹
  • 2.安裝步驟
  • 3.Faster RCNN目標檢測
  • 4. 效果
  • 5.錯誤解決
  • 6.參考博客
  • 7,下一節(jié)代碼解析


在上一篇博客記錄了 SlowFast的復現(xiàn)過程,slowfast其中有一部分是detectron2實現(xiàn)Faster RCNN對人的目標檢測。

這一篇博客就單獨記錄detectron2實現(xiàn)Faster RCNN目標檢測的解析

B站視頻講解

1. 背景介紹

  • detectron2項目地址
  • detectron2文檔

2.安裝步驟

安裝:

pip install -U torch torchvision cython pip install -U 'git+https://github.com/facebookresearch/fvcore.git' 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI' git clone https://github.com/facebookresearch/detectron2 detectron2_repo pip install -e detectron2_repo

3.Faster RCNN目標檢測

在終端輸入:

python3 demo.py --config-file ../configs/COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml \--input ../img/1.JPG \--output ../img/1_1.jpg \--opts MODEL.WEIGHTS detectron2://COCO-Detection/faster_rcnn_R_50_FPN_3x/137849458/model_final_280758.pkl

4. 效果

5.錯誤解決

運行過程中可能會出現(xiàn)

Traceback (most recent call last):
File “demo.py”, line 7, in
import cv2
File “/opt/conda/lib/python3.7/site-packages/cv2/init.py”, line 5, in
from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

解決方案:

在終端運行:

apt update apt install libgl1-mesa-glx

6.參考博客

Ubuntu18.04 配置detectron2實現(xiàn)Faster RCNN目標檢測和Mask RCNN實例分割(一)

7,下一節(jié)代碼解析

【代碼解析】顯示detectron2中faster R-CNN的檢測結果,利用visualizer顯示

?

總結

以上是生活随笔為你收集整理的【Faster RCNN detectron2】detectron2实现Faster RCNN目标检测的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。