Giter Site home page Giter Site logo

yolact_ros's Introduction

yolact_ros

This is a ROS package interfacing real-time object detector YOLACT (https://github.com/dbolya/yolact) which provides the masks of the detected objects. A ROS node subscribes bgr image and publishes bgr image, class labels, prediction socres, bounding boxes and masks. This ROS package uses the same trained weights and configurations as in YOLACT.

Pre-request

  • ROS with Python 3.5
  • Pytorch and torch vision

Compatability

Tested on Ubuntu 16.04 + ROS Kinetic + Python 3.5
To use cv_bridge with Python 3 in ROS Kinetic, build cv_bridge from source in a catkin workspace, remember to set python library to Python 3.

Citation

@misc{leiYolactROS2019,
  title = {{ROS} Interface for Real-Time Object Detector {YOLACT}}, 
  author = {Lei Shi},
  url = {https://github.com/leishi07/yolact_ros},
  year = {2019},
}

Usage

  1. Launching

roslaunch yolact_ros yolact_ros.launch

  1. Parameters

Parameters can be changed in launch/yolcat_ros.launch

  • sub_img_topic_name: ROS image topic to subscribe

  • model_path: path to save model and name of the model, weights can be downloaded at YOLACT site (https://github.com/dbolya/yolact)

  • cuda: use GPU acceleration or not

  • use_fast_nms: use fast NMS or not

  • threshold: threshold for detection

  • display_cv: Display cv image or not

  • top_k: get top k objects, you will also only get k objects in published ros topics

  • yolact_config: set configuration for Yolact

    "yolact_config" Model
    yolact_base_config yolact_base_54_800000.pth
    yolact_darknet53_config yolact_darknet53_54_800000.pth
    yolact_resnet50_config yolact_resnet50_54_800000.pth
    yolact_im700_config yolact_im700_54_800000.pth
  1. Published Topics
  • sensor_msgs/Image: "/yolact_image"
    Publishes ROS image topic.

  • yolact_ros/yolact_objects: "/yolact_objects"
    Publishes detected objects topic. This is a custom message type.

    yolact_ros/yolact_objects:

    Header header
    Object[] object
    

    yolact_ros/Object:

    string Class
    float64 score
    int64 x1
    int64 y1
    int64 x2
    int64 y2
    sensor_msgs/Image mask
    

    x1 and y1 is the top-left point of the bounding box x2 and y2 is the bottom-right one.

yolact_ros's People

Contributors

leishi07 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.