Git Product home page Git Product logo

yolov6-ros's Introduction

ROS package for YOLOv6

This repo contains a ROS noetic package for YOLOv6. It wraps the official implementation into a ROS node (so most credit goes to the YOLOv6 creators).

Maybe you are also interested in the ROS package for YOLOv7.

Example image from RVIZ

Requirements & Getting Started

Following ROS packages are required:

First, clone the repo into your catkin workspace and build the package:

git clone https://github.com/lukazso/yolov6-ros.git ~/catkin_ws/src/
cd ~/catkin_ws
catkin build yolov6-ros

The Python requirements are listed in the requirements.txt. You can simply install them as

pip install -r requirements.txt

Download the YOLOv6 weights from the official repository.

The package has been tested under Ubuntu 20.04 and Python 3.8.10.

Usage

Before you launch the node, adjust the parameters in the launch file. For example, you need to set the path to your YOLOv6 weights and the image topic to which this node should listen to. The launch file also contains a description for each parameter.

roslaunch yolov6-ros yolov6.launch

Each time a new image is received it is then fed into YOLOv6.

Notes

  • The detections are published using the vision_msgs/Detection2DArray message type.
  • The detections will be published under /yolov6/out_topic.
  • If you set the visualize parameter to true, the detections will be drawn into the image, which is then published under /yolov6/out_topic/visualization.

Coming Soon

  • Additional weights for automotive datasets

yolov6-ros's People

Stargazers

 avatar Anselme ATCHOGOU avatar  avatar  avatar  avatar  avatar Arvind avatar Anish Dalvi avatar Georg No avatar John Monsen avatar Dharanish avatar Tiga  avatar Alberto Tudela avatar Richard Osterloh avatar 吴凯荣 avatar Khasreto avatar Jose Ángel Gumiel avatar Saad Ahmad avatar  avatar Romain Desarzens avatar Kevin Patel avatar  avatar Umang G. Patel avatar Furkan Edizkan avatar Nilutpol Kashyap avatar  avatar samuel ang avatar Yudi Pratama avatar Impresso Studios avatar Mathias Mantelli avatar KasperCJ avatar  avatar Mahmoud Nasr avatar Rahul Bhadani avatar Juan Diego  avatar Zeeshan Sardar avatar Ahmet Ceyhun Bilir avatar  avatar Michael avatar Giovanni Franzese avatar Richard Schulz avatar Fabian Klein avatar Dio avatar Ali Rida Sahili avatar Andrzej Reinke avatar Lars Ohnemus avatar Bastian Lampe avatar si_isele avatar

Watchers

John Monsen avatar Lukas Ewecker avatar

yolov6-ros's Issues

Removing A layer from RGBA images, Bounding Boxes and rescaling inaccurate

Hi sometimes images arrive from cmaeras as BGRA images.
In detect.py, line 115 you might want to add the following lines of codes and checks

if np_img_resized.shape[2] == 4: #Removing extra channel if RGBA np_img_resized = np_img_resized[:,:,:3]

Other cases might be handled here in a similar fashion.

This also applies to your yolov7 repo.

Furthermore, I noticed that the bounding boxes that I visualize in ROS are not extremely precise. I think somewhere in the code there is some error in the re-shaping or re-drawing of the scaled images and detection. Have a look at the image below
image
the Bounding Boxes seem a little bit too long IMO

[Feature Request] Confidence Scores and Names

Hi, first of all congrats for the great work! I have tried this and the Yolov7, but the other one unfortunately has memory leak.

Could you please include (and I will be working on it soon):

-Drawing class names and not numbers on the prediction
-Drawing BB prediction confidence score

Issue with AttributeError in yolov6-ros package

I am reaching out to report an issue that I encountered while using the yolov6-ros package in my Ubuntu 20.04 environment with Python 3.8.10. Firstly, I want to thank you for developing this ROS package and providing the necessary instructions in the readme file.

However, I encountered the following error:

AttributeError: Can't get attribute 'SimCSPSPPF' on module 'volov6.layers.common' from '/home/robotec/.local/lib/python3.8/site-packages/yolov6/layers/common.py'

I have followed the instructions mentioned in the readme file, including cloning the repository into my catkin workspace, building the package, and installing the required Python packages. Additionally, I have downloaded the YOLOv6 weights from the official repository into the src folder.

Despite having completed these steps, the AttributeError mentioned above occurs when I attempt to launch the node using the provided launch file (roslaunch yolov6-ros yolov6.launch).

Could someone please provide guidance on resolving this issue? I have double-checked that all the required packages and their versions are correctly installed in my environment. I believe I have met all the requirements specified in the readme file.

Thank you for your attention to this matter. Please let me know if it required any further information or if there are additional steps I should follow.

error detect

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.