Initialising yolo3 weight

asked 2020-01-20 08:03:16 -0600

Allaye gravatar image
 yolo = cv.dnn.readNet('yolov3.weights', 'yolov3.cfg')


---------------------------------------------------------------------------
error                                     Traceback (most recent call last)
<ipython-input-12-c8e3473b107d> in <module>
----> 1 yolo = cv.dnn.readNet('yolov3.weights', 'yolov3.cfg')

error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_io.cpp:509: error: (-215:Assertion failed) separator_index < line.size() in function 'cv::dnn::darknet::ReadDarknetFromCfgStream'


​I get these errors  when i try running the above codes
edit retag flag offensive close merge delete

Comments

1

your cfg file looks broken. can you check if it looks like this ?

one of those [] braces is not closed.

berak gravatar imageberak ( 2020-01-20 08:15:32 -0600 )edit