解析 netParameter 文件失败 [英] Failed to parse netParameter file

查看:67
本文介绍了解析 netParameter 文件失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

>py yolo.py --video-path='F:/Data_Science/Python37/Scripts/YOLO/videos/lowres.mp4'
Traceback (most recent call last):
  File "yolo.py", line 88, in <module>
    net = cv.dnn.readNetFromDarknet(FLAGS.config, FLAGS.weights)
cv2.error: OpenCV(4.0.1) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_importer.cpp:214: error:  
 (-212:Parsing error) Failed to parse NetParameter file: ./yolov3- 
 coco/yolov3.weights in function 'cv::dnn::dnn4_v20181221::readNetFromDarknet'

为什么我会收到解析错误?谁能帮我解决这个问题?

why am I getting a parse error? Can anyone help me fix this?

推荐答案

! wget "https://pjreddie.com/media/files/yolov3.weights"

运行此命令并将yolo.weight文件保存在yolov3-coco中.

Run this command and save the yolo.weight file in yolov3-coco.

这篇关于解析 netParameter 文件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆