Skip to content

Try to run yolov11 but errors ocuur. Need HELP!!!⚠️ #17577

Answered by glenn-jocher
XYyang530 asked this question in Q&A
Discussion options

You must be logged in to vote

@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 device=cpu to your command:

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/.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by XYyang530
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working question Further information is requested detect Object Detection issues, PR's
3 participants