This is a package for using DeepLab models with ROS. DeepLab is a state-of-the-art deep learning architecture for semantic image segmentation, where the goal is to assign semantic labels (e.g., person, dog, cat and so on) to every pixel in the input image. For more information about DeepLab, please visit this link.
Code for running inference is based on the following Colab notebook.
If you use the code for your research, please cite this work as:
@misc{grinvald2018deeplabros,
author={Margarita Grinvald},
title={ROS Wrapper for DeepLab},
year={2018}
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/ethz-asl/deeplab_ros}},
}
Clone this repository to the src
folder of your catkin workspace, build your workspace and source it.
cd <catkin_ws>/src
git clone git@github.com:ethz-asl/deeplab_ros.git
catkin build
source <catkin_ws>/devel/setup.bash
An example launch file is included processing a sequence from the Freiburg RGB-D SLAM Dataset.
cd <catkin_ws>/src/deeplab_ros
chmod +x scripts/download_freiburg_rgbd_example_bag.sh
scripts/download_freiburg_rgbd_example_bag.sh
roslaunch deeplab_ros freiburg.launch
-
~rgb_input
[string]Topic name of the input RGB stream.
Default:
"/camera/rgb/image_color"
-
~model
[string]Name of the backbone network used for inference. List of available models: {"mobilenetv2_coco_voctrainaug", "mobilenetv2_coco_voctrainval", "xception_coco_voctrainaug", "xception_coco_voctrainval"}. If the specified model file doesn't exist, the node automatically downloads the file.
Default:
"mobilenetv2_coco_voctrainaug"
-
~visualize
[bool]If true, the segmentation result overlaid on top of the input RGB image is published to the
~segmentation_viz
topic.Default:
true
-
topic name specified by parameter
~rgb_input
(default:/camera/rgb/image_color
) [sensor_mgs/Image]Input RGB image to be processed.
-
~segmentation
[sensor_mgs/Image]Segmentation result.
-
~segmentation_viz
[sensor_mgs/Image]Visualization-friendly segmentation result color coded with the PASCAL VOC 2012 color map overlaid on top of the input RGB image.