Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertion error (?) when loading yolo9000 with cv2.dnn.readNetFromDarknet #46

Open
average-everyman opened this issue Jul 2, 2021 · 0 comments

Comments

@average-everyman
Copy link

Hello, this is what I get:

model = cv2.dnn.readNetFromDarknet(path_to_model_config, path_to_model_weights)
cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-i1s8y2i1\opencv\modules\dnn\src\darknet\darknet_io.cpp:632: error: (-215:Assertion failed) separator_index < line.size() in function 'cv::dnn::darknet::ReadDarknetFromCfgStream'

weights file was created as per instructions here:
https://github.com/philipperemy/yolo-9000#windows

cfg file was from here:
https://github.com/pjreddie/darknet/blob/1e729804f61c8627eb257fba8b83f74e04945db7/cfg/yolo9000.cfg

any ideas? I am a bit puzzled by this...

@average-everyman average-everyman changed the title assertion error (?) when loading the yolo9000 with cv2.dnn.readNetFromDarknet assertion error (?) when loading yolo9000 with cv2.dnn.readNetFromDarknet Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant