Giter VIP home page Giter VIP logo

Comments (10)

mgonzs13 avatar mgonzs13 commented on July 20, 2024

Hi @goodhsm2000, it seems that YOLOv8 is detecting nothing in your images.
You can try reducing the threshold. Your objects may be getting bad scores.
Have you checked if the images obtained from the real sense camera are correct? I mean visualizing them.

from yolov8_ros.

goodhsm2000 avatar goodhsm2000 commented on July 20, 2024

Yes. I used the cv2.imshow command to check that the camera image is coming in well. I set the Threshold to 0.5, but it can't even detect the person right in front of the camera.

from yolov8_ros.

mgonzs13 avatar mgonzs13 commented on July 20, 2024

Try a threshold below 0.5. Which ultralytics version are you using?

from yolov8_ros.

goodhsm2000 avatar goodhsm2000 commented on July 20, 2024

The same problem occurs when the conf value is 0.1. Ultralytics is 8.0.57. version

from yolov8_ros.

mgonzs13 avatar mgonzs13 commented on July 20, 2024

You can try a new version of ultralytics. I have published a new branch (devel) with ultralytics 8.0.149.
Btw, I also recommend using Humble vision_msgs package. You can clone the repo in your ros2_ws.

from yolov8_ros.

goodhsm2000 avatar goodhsm2000 commented on July 20, 2024

Hello. There was a problem that I couldn't detect any objects just like before even using the code from the new branch.
While analyzing the code for troubleshooting, I found that the problem occurred in the "self.yolo.to (device)" part.
Strangely, in my jetson xavier, the YOLO model was not transferred to "cuda:0" with this code.
I erased the "self.yolo.to(device)" part and solved the problem using device="cuda:0" as a argument for the YOLO's "predict" function.

Do you know why this problem happened?

from yolov8_ros.

mgonzs13 avatar mgonzs13 commented on July 20, 2024

I have tried using the device in the predict function and it works well, I may change it in the future.
Btw, have you checked ultralytics/ultralytics#3557?

from yolov8_ros.

goodhsm2000 avatar goodhsm2000 commented on July 20, 2024

Yes. What is certain is that when I executed the code currently in the main branch in my laptop environment, it worked without any problems.

I haven't used Deepstream yet, so I haven't read the ultralytics/ultralytics#3557 in detail.

Are you suggesting that I use Deepstream?

from yolov8_ros.

mgonzs13 avatar mgonzs13 commented on July 20, 2024

No, I was thinking about the jetpack version since they suggest to update it. Nevertheless, I have changed the use of the device from the model creation to the prediction function as you mentioned before in the devel branch. If you want to try it, I have also created some custom messages as I have received feedback from different sources about the differences in the vision_msgs package from Foxy to Humble. You can also try instance segmentation and hume pose that are available in the devel branch.

from yolov8_ros.

goodhsm2000 avatar goodhsm2000 commented on July 20, 2024

I see. But I was already using the jetpack 5.1 version.

I checked the code of the new devel branch you uploaded. Thank you very, very much for your quick response and attentive assistance. It was a great help in resolving the issue.

And thank you for sharing the good code.

from yolov8_ros.

Related Issues (20)

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.