Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Initialising yolo3 weight

 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