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

prjeddie/darknet Results Format #56

Closed
TwiggyDaniels opened this issue Feb 19, 2019 · 4 comments
Closed

prjeddie/darknet Results Format #56

TwiggyDaniels opened this issue Feb 19, 2019 · 4 comments

Comments

@TwiggyDaniels
Copy link

The prjeddie Darknet implementation https://github.com/pjreddie/darknet produces separate result files for each class in the result folder. I'm just wondering how I can consolidate them to work with your implementation?

In your extras README it mentioned running Darknet with darknet.exe and I know that the prjeddie version doesn't support Windows so which implementation are you expecting the output from? I could probably work on hunting down the answer myself if I could get that.

@TwiggyDaniels
Copy link
Author

TwiggyDaniels commented Feb 21, 2019

Alright so that seems to be correct and it is the AlexeyAB fork that is expected but python convert_pred_yolo.py doesn't appear to function on result.txt

I did have to change line 8 to my file type (.jpg -> .png) but still receive this error:

Traceback (most recent call last):
  File "convert_pred_yolo.py", line 33, in <module>
    left, top, width, height = [int(s) for s in bbox.split() if s.lstrip('-').isdigit()]
ValueError: not enough values to unpack (expected 4, got 0)

I'll be digging into it in the meantime.

@TwiggyDaniels
Copy link
Author

Alright so it turns out with AlexeyAB's fork, redirecting the output to a file can have a hiccup and you simply need to find the resulting line that is missing elements and delete it, or re-run your classifier.

@Cartucho
Copy link
Owner

@Stoltec Hello! Sorry for the super late response! I have been busy.

I am currently working on releasing a new version of this repo that supports all those formats, including https://github.com/pjreddie/darknet

@ghosh-inspire
Copy link

Any updates regarding this issue.

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