-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any problem if I run this code on a jetson xavier? #5
Comments
Hi @goodhsm2000, it seems that YOLOv8 is detecting nothing in your images. |
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. |
Try a threshold below 0.5. Which ultralytics version are you using? |
The same problem occurs when the conf value is 0.1. Ultralytics is 8.0.57. version |
You can try a new version of ultralytics. I have published a new branch (devel) with ultralytics 8.0.149. |
Hello. There was a problem that I couldn't detect any objects just like before even using the code from the new branch. Do you know why this problem happened? |
I have tried using the device in the predict function and it works well, I may change it in the future. |
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? |
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. |
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. |
Hi, Im still facing the same issue with no detction on Jetson Xavier, with Jetpack 5.1.2 and realsense D435i, I can get the yolo_debug image but cant detect any object, any check or solution could solve this? very appreciate if get your help |
Its torch problemjetpack 5.1.2 find the cause, in the yolov8_node.py line 30, from torch import cuda, this cause self.yolo.predict return nothing, move it to line 125 that before the clear cuda cache, works fine. dont know why the effect the model output, may be some problem with torch on xavier. hope this could help anyone meet the none detection issue |
Weird conditions with depth fixed
@nypyp, I have changed the |
Even if you change cuda directly in torch with from torch import cuda, there is no motion in Jetson xavier. Jatson xavier nx and Jetpack version 5.1.1. |
The last versions of this repo don't support Foxy since it uses lifecycles. You may use an old version. Btw, what about using a docker? |
Hello. Thanks to the code you posted, I succeeded in detecting real-time objects with a webcam in a local environment. Using this code, I also tried to detect real-time objects with a real sense camera in Jetson Xavier. However, the camera image is experiencing a problem that it passes through the YOLO model well and does not detect any objects. (The "results" value is good without problems, but the "results[0].boxes" value is empty)
Is there any solution to this problem?
I'm using the ROS2 foxy version, so I installed the vision_msgs as a foxy version and changed the parameters to fit. (I succeeded in detecting objects in the same environment locally.)
Torch and Torchvision were also installed well for the jetpack version that is being used.
I would appreciate your advice if you know anything.
The text was updated successfully, but these errors were encountered: