Replies: 2 comments 5 replies
-
It sounds like you're encountering an unusual issue with YOLOv8 predictions. First, ensure you're using the latest version of the Ultralytics package by running |
Beta Was this translation helpful? Give feedback.
-
If anyone is also coming across this issue I ended up solving it by uninstalling torch, torchaudio, and torchvision then installing CUDA Toolkit and reinstalling torch as the CUDA version, found here: https://pytorch.org/get-started/locally/ This fixed the original dependency error with torch and for some reason YOLO then started giving accurate predictions. |
Beta Was this translation helpful? Give feedback.
-
I was trying to run YOLOv8 using visual code studio. Installed ultralytics and ran the yolo predict model=yolov8n.pt source='https://ultralytics.com/images/bus.jpg' command on the vs code terminal. However the output i received was 2 persons, 1 bicycle, 5 cars, 10 motorcycles, 73 boats, 3 stop signs, 1 dog, 10 horses, 10 cows, 32 bears, 1 giraffe, 63 umbrellas, 6 handbags, 9 frisbees, 15 snowboards, 5 surfboards, 12 knifes, 5 beds, 37 dining tables which are clearly not part of the picture. I will be providing a attachment of the image.
When i first installed ultralytics and tried running torch there was a missing dependency error. fbgemm.ddl was missing. Later when i installed vs_BuildTools this issue was resolved. Then i proceeded to run the code in a virtual environment where a program using torch ran without any errors. Then i proceeded to type this code snippet and encountered this problem. I also tried running using command prompt and jupyter notebook but the same issue persists. I also did check if the versions are compatible, which they are. I haven't installed cuda yet is it becuase of that or are there any other issues which i am not aware of ? Somebody please help.
Beta Was this translation helpful? Give feedback.
All reactions