-
-
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 discussions and found no similar questions.
Question
download new yolov5
command
python detect.py --source https://www.youtube.com/watch?v=ydYDqZQpim8
Model Summary: 213 layers, 7225885 parameters, 0 gradients
WARNING: Environment does not support cv2.imshow() or PIL Image.show() image displays
cv2.imshow() is disabled in Docker environments
Traceback (most recent call last):
File "detect.py", line 243, in <module>
main(opt)
File "detect.py", line 238, in main
run(**vars(opt))
File "/opt/conda/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "detect.py", line 92, in run
dataset = LoadStreams(source, img_size=imgsz, stride=stride, auto=pt)
File "/work/Pictures/YOLOv5/new_yolov5_1019/yolov5/123/yolov5/utils/datasets.py", line 306, in __init__
s = pafy.new(s).getbest(preftype="mp4").url # YouTube URL
File "/opt/conda/lib/python3.8/site-packages/pafy/pafy.py", line 124, in new
return Pafy(url, basic, gdata, size, callback, ydl_opts=ydl_opts)
File "/opt/conda/lib/python3.8/site-packages/pafy/backend_youtube_dl.py", line 31, in __init__
super(YtdlPafy, self).__init__(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/pafy/backend_shared.py", line 97, in __init__
self._fetch_basic()
File "/opt/conda/lib/python3.8/site-packages/pafy/backend_youtube_dl.py", line 54, in _fetch_basic
self._dislikes = self._ydl_info['dislike_count']
KeyError: 'dislike_count'
Additional
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working