-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Search before asking
- I have searched the YOLOv5 issues and found no similar bug report.
YOLOv5 Component
No response
Bug
Hi,
I tested classify with a webcam and I got an error on this line:
Line 104 in 51c9f92
im = im.to(device) |
'numpy.ndarray' object has no attribute 'to'
I changed it to
im = torch.from_numpy(im).to(device)
works fine
Environment
No response
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
- Yes I'd like to help by submitting a PR!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working