I get the same error as in #1617 #11136 on MPS
bugStaledependenciesdetect
### Search before asking
- [x] I have searched https://github.com/ultralytics/yolov5/issues and did not find a similar report.
### Project area
Other, Training
### Bug
issue is happening due to this lines
https://github.com/ultralytics/yolov5/blob/85f6019e5af2641e33139e97415b7bd1dc72d779/utils/general.py#L913-L915
The same error as in https://github.com/ultralytics/yolov5/issues/1617 and in https://github.com/ultralytics/yolov5/issues/11136 occurs.
### Environment
YOLO: latest as of now
OS: MacOS 13.2.1
### Minimal Reproducible Example
```
# load PIL images into list v
device = "mps"
model = torch.hub.load("ultralytics/yolov5", "yolov5s")
model.to(device);
model(v)
```
### Additional
I am confident that together we can finally resolve this monstrosity of an issue and remove one line of code
### Are you willing to submit a PR?
- [ ] Yes I'd like to help by submitting a PR!
3 条评论