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

Python wrapper returns blank prediction #51

Closed
ssetty opened this issue Nov 23, 2018 · 3 comments
Closed

Python wrapper returns blank prediction #51

ssetty opened this issue Nov 23, 2018 · 3 comments

Comments

@ssetty
Copy link

ssetty commented Nov 23, 2018

Hello
I am trying to use python wrapper https://pypi.org/project/yolo34py/ for model built using alexyAB https://github.com/AlexeyAB/darknet.

If I am using python wrapper predictions are blank. But if I use
darknet detector test data/obj.data yolo-obj.cfg yolo-obj_8000.weights test_image I can see predictions. I need some api wrapper for detected objects, bounding box coordinates and class label. Kindly help.

Thanks

@ssetty
Copy link
Author

ssetty commented Nov 24, 2018

Do I need to set some probability threshold? May be values needs to be lowered? Which setting is this?

@madhawav
Copy link
Owner

@ssetty You can have a cut-off based on the confidence score returned with a detection.

            results = net.detect(dark_frame)
            del dark_frame

            end_time = time.time()
            print("Elapsed Time:",end_time-start_time)

            for cat, score, bounds in results:
                if score > threshold:
                   x, y, w, h = bounds```

@h3ct0r
Copy link

h3ct0r commented Mar 6, 2019

Hi @ssetty did you find how to solve this problem? I'm having issues also with empty detections that are not happening if I use the standard darknet executable.

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

3 participants