Environment: python3.8 virtual environment of Windows10, yolov5, Anaconda3
The following is the specific error
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
The default value of weights in brackets after Namespace needs to be changed. But the code has not been studied yet, so you can set the parameters yourself first.
python detect.py--weights weights/yolov5s.pt
success!