环境:Windows10,yolov5,Anaconda3的python3.8虚拟环境
以下是具体报错
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
Namespace后面括号里的weights默认值需要改一下。但是代码还没去研究,所以可以先自己设置参数。
python detect.py--weights weights/yolov5s.pt
成功!