weights = 'yolov5s.pt' ckpt = torch.load(weights, map_location=device)
加载权重文件遇到的报错
原因 pt文件传输过程中,没有传输完整
重新上传或者下载pt文件