Skip to content

A set of python scripts implementing MMDetection for object detection with depth camera.

Notifications You must be signed in to change notification settings

petpetpeter/mmdetection_ros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mmdetection_ros

A set of python scripts implementing MMDetection for object detection with a depth camera.

Picture1

Preparation

  1. Clone this repo to your catkin workspace
cd /catkin_ws/src
git clone https://github.com/petpetpeter/mmdetection_ros.git
  1. Build your workspace
cd /catkin_ws/
catkin build
source ~/.bashrc
  1. Install Python Dependencies (Pytorch, MMDetection)

follow: https://mmdetection.readthedocs.io/en/latest/get_started.html#installation (recommend using conda)

ez installation

conda create -n ezmmd python=3.8
conda activate ezmmd
install pytorch (follow here: https://pytorch.org/get-started/locally/)
pip install openmim
mim install mmdet
  1. Download pretrain weight to /scripts/checkpoints
cd script/checkpoints
wget "https://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth"
  1. Launch depth camera simulation
roslaunch mmd_ros coco_camera.launch
  1. Run detection script
conda activate ezmmd
cd /script
python rosimage_detector.py

ezgif com-gif-maker

Acknowledgement

About

A set of python scripts implementing MMDetection for object detection with depth camera.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published