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

cannot determine an origin Framework #3

Open
SimonCL17 opened this issue May 12, 2022 · 1 comment
Open

cannot determine an origin Framework #3

SimonCL17 opened this issue May 12, 2022 · 1 comment

Comments

@SimonCL17
Copy link

SimonCL17 commented May 12, 2022

Hi there,

I believe I have correctly put in the absolute paths. When I run main.py I get the following error. Are you able to help?

image

@FireHead90544
Copy link

FireHead90544 commented May 24, 2022

Hello There @SimonCL17,
I guess the problem is related to an optional parameter in readNet() function.
Are you sure your weights file ends with .weights extension and config file ends with .cfg extension?

Try changing the below line with the one provided latter

net = cv2.dnn.readNet(weight_path, config_path)

to

net = cv2.dnn.readNet(weight_path, config_path, "darknet")

Note: You need to enter the path according to the python standards.
For example, assuming your path is
E:\data\yolov3_trained.weights
Enter,
E:\\data\\yolov3_trained.weights

Though, soon I might generate a pr fixing this issue by using pathlib to handle the paths :)

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

2 participants