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

Label array not equal to the length of class #113

Closed
achyutjoshi opened this issue Oct 28, 2018 · 2 comments
Closed

Label array not equal to the length of class #113

achyutjoshi opened this issue Oct 28, 2018 · 2 comments

Comments

@achyutjoshi
Copy link
Contributor

Hi,

As per the documentation, the length of the label should be equal to the length classes in config.json.

I have declared this as my class -

  "classes": [
    { "name": "Roads", "filter": ["==","highway","motorway"] }
  ]

However, my labels are being made as "label": [1, 0] or "label": [0, 1]

Is there a specific reason for this kind of return? Thanks

@drewbo
Copy link
Contributor

drewbo commented Oct 28, 2018

@achyutjoshi good catch, we'll need to update the docs on this. The classification labels are actually of length len(classes) + 1 because of the background class.

@achyutjoshi
Copy link
Contributor Author

Ahh. I can do that if you want to!

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