TypeError: argument of type 'int' is not iterable #235
Unanswered
AyhemAllouache
asked this question in
Q&A
Replies: 1 comment 1 reply
-
解决了吗老哥 我也遇到这问题了 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(yolo-env) pi@raspberrypi:~/Desktop/YOLOv5-Lite $ python3 detect.py --source 0
Namespace(weights='weights/v5lite-e.pt', source='0', img_size=640, conf_thres=0.45, iou_thres=0.5, device='', view_img=False, save_txt=False, save_conf=False, nosave=False, classes=None, agnostic_nms=False, augment=False, update=False, project='runs/detect', name='exp', exist_ok=False)
YOLOv5 🚀 v1.4-53-g0f96139 torch 2.0.1 CPU
Fusing layers...
/home/pi/Desktop/yolo-env/lib/python3.9/site-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /root/pytorch/aten/src/ATen/native/TensorShape.cpp:3483.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
Model Summary: 167 layers, 781205 parameters, 0 gradients, 2.9 GFLOPS
qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown), sequence: 185, resource id: 0, major code: 140 (Unknown), minor code: 20
1/1: 0... Traceback (most recent call last):
File "/home/pi/Desktop/YOLOv5-Lite/detect.py", line 178, in
detect()
File "/home/pi/Desktop/YOLOv5-Lite/detect.py", line 51, in detect
dataset = LoadStreams(source, img_size=imgsz, stride=stride)
File "/home/pi/Desktop/YOLOv5-Lite/utils/datasets.py", line 279, in init
if 'youtube.com/' in url or 'youtu.be/' in url: # if source is YouTube video
TypeError: argument of type 'int' is not iterable
Beta Was this translation helpful? Give feedback.
All reactions