We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
To Reproduce Steps to reproduce the behavior: 1.运行python train.py --img 640 --batch 4 --epochs 50 --data coco.yaml --weights yolov5s.pt --device '0'
解决方法:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
To Reproduce
Steps to reproduce the behavior:
1.运行python train.py --img 640 --batch 4 --epochs 50 --data coco.yaml --weights yolov5s.pt --device '0'
解决方法:
参考:https://stackoverflow.com/questions/74372636/indices-should-be-either-on-cpu-or-on-the-same-device-as-the-indexed-tensor
The text was updated successfully, but these errors were encountered: