Try to run yolov11 but errors ocuur. Need HELP!!!⚠️ #17577
-
I downloaded the ultralytics follow by the Ultralytics YOLO Docs and when I try to run the run"yolo predict model=yolo11n.pt imgsz=640 conf=0.25" as a example. But the anaconda prompt give me the errors: Traceback (most recent call last): CPU: registered at C:\actions-runner_work\vision\vision\pytorch\vision\torchvision\csrc\ops\cpu\nms_kernel.cpp:112 [kernel] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
👋 Hello @XYyang530, thanks for reaching out about your experience with Ultralytics 🚀! We're here to help you get things running smoothly. Make sure to check out our comprehensive Docs for guidance on getting started, including examples on using Python and CLI. It seems like you might be encountering a 🐛 bug. Could you please provide a minimum reproducible example with detailed steps so that we can better assist you? This will help us understand the issue thoroughly. Additionally, ensure that your Python environment is up-to-date and compatible with all dependencies. You can upgrade to the latest pip install -U ultralytics Join our lively community for more interactive help. On Discord 🎧, you can chat in real-time, or for more detailed discussions visit Discourse. Also, explore our Subreddit to learn and share experiences with others. Our environments for YOLO are constantly updated to ensure the best compatibility. You can run YOLO using:
This response is automated, but rest assured, a member of our Ultralytics engineering team will review your issue soon! |
Beta Was this translation helpful? Give feedback.
-
@XYyang530 based on the error message, it appears you're encountering a CUDA compatibility issue with torchvision's NMS operation. Try reinstalling PyTorch and torchvision with CUDA support using: pip uninstall torch torchvision
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118 If the issue persists, you can temporarily force CPU inference by adding yolo predict model=yolo11n.pt imgsz=640 conf=0.25 device=cpu For more details on resolving CUDA-related issues, see our troubleshooting guide at https://docs.ultralytics.com/guides/yolo-common-issues/. |
Beta Was this translation helpful? Give feedback.
@XYyang530 based on the error message, it appears you're encountering a CUDA compatibility issue with torchvision's NMS operation. Try reinstalling PyTorch and torchvision with CUDA support using:
If the issue persists, you can temporarily force CPU inference by adding
device=cpu
to your command:For more details on resolving CUDA-related issues, see our troubleshooting guide at https://docs.ultralytics.com/guides/yolo-common-issues/.