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

AttributeError: module 'darknet' has no attribute 'POINTER' #8918

Open
csemenzin opened this issue Jul 15, 2024 · 1 comment
Open

AttributeError: module 'darknet' has no attribute 'POINTER' #8918

csemenzin opened this issue Jul 15, 2024 · 1 comment

Comments

@csemenzin
Copy link

csemenzin commented Jul 15, 2024

I am currently trying to run darknet using the Python wrapper darknet_images.py to analyze a batch of images. I get this error when running from terminal:

python darknet_images.py

with default arguments and

if __name__ == "__main__":
    batch_detection_example()
    main()

Indeed I see the darknet.py file does not have a POINTER class definition. Could you please help?
You can safely ignore the statement "images do not have the same shape" as for testing I'm using a single file.

using Python 3.8.13 on Ubuntu 20.04.6 LTS

Screenshot from 2024-07-15 18-25-23

@stephanecharette
Copy link
Collaborator

You should use the new Darknet repo, which has updated python support: https://github.com/hank-ai/darknet#table-of-contents

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