Comments (10)
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.
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.
Try a threshold below 0.5. Which ultralytics version are you using?
from yolov8_ros.
The same problem occurs when the conf value is 0.1. Ultralytics is 8.0.57. version
from yolov8_ros.
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.
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.
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.
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.
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.
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)
- Issues with launching the launch file HOT 3
- IndexError/ out of bounds in detect_3d_node using RealSense HOT 13
- size error HOT 1
- How can I get the image? HOT 10
- Detect_3d_node: tuple index out of range HOT 18
- How can I get image? part2 HOT 9
- Suggestion regarding further steps for speed estimation HOT 64
- ZeroDivision error HOT 7
- How to Deploy a Single Instance of yolov8_ros Node for Multiple Camera Detections HOT 7
- Could not transform: "base_link" passed to lookupTransform argument target_frame does not exist HOT 2
- Train HOT 6
- how can i convert 3d coordinate to real word coordinate? HOT 2
- How to create and train the dataset HOT 3
- Issue when trying to launch yolov8 - using realsense camera HOT 10
- base_link passed to lookupTransform argument target_frame does not exist HOT 2
- detect_3d_node.py: on_detections not being called! HOT 4
- 3D object detection Transformation issue HOT 15
- Policy CMP0148 HOT 3
- Run YOlo8 in ROS HOT 3
- [debug_node-3] AttributeError: module 'cv2' has no attribute 'Mat' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolov8_ros.