使用YOLOv5训练完物体后,用detect.py文件识别
打开detect.py文件,将defaul=0
有错
if 'youtube.com/' in url or 'youtu.be/' in url: # if source is YouTube video TypeError: argument of type 'int' is not iterable
解决方案
将urL替换str(url)
if 'youtube.com/' in str(url) or 'youtu.be/' in str(url): # if source is YouTube video
成功