Skip to content
New issue

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

TypeError bug when running detect.py with webcam #75

Open
andresestrella opened this issue Jul 11, 2022 · 1 comment
Open

TypeError bug when running detect.py with webcam #75

andresestrella opened this issue Jul 11, 2022 · 1 comment

Comments

@andresestrella
Copy link

command: python detect.py --source 0

output:
1/1: 0... Traceback (most recent call last):
File "detect.py", line 184, in
detect()
File "detect.py", line 55, in detect
dataset = LoadStreams(source, img_size=imgsz, stride=stride)
File "\yolov7\utils\datasets.py", line 285, 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

Seems to be this same bug
ultralytics/yolov5#2810

@ljl199
Copy link

ljl199 commented Jul 11, 2022

if 'youtube.com/' in url or 'youtu.be/' in url: # if source is YouTube video
Change both 'urls' to 's'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants