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

Distinguishing between species in segmentation masks #95

Closed
hlydecker opened this issue Oct 1, 2020 · 2 comments
Closed

Distinguishing between species in segmentation masks #95

hlydecker opened this issue Oct 1, 2020 · 2 comments
Labels
Milestone

Comments

@hlydecker
Copy link
Contributor

This issue was brought up by Guy:

The weed species information is on an image-wise basis, but I was wondering how you were doing that for segmentation masks where the colour/shade of the mask refers to individual species but where that information is only encoded at the start. Would we need to define which colours referred to which weed (in some input box if you select segmentation?) and then have a bit of code go over every image and check for that colour and then assign a weed id, or is this already covered in the COCO standard?

@jnothman
Copy link
Contributor

jnothman commented Oct 2, 2020

COCO doesn't store masks as a PNG, but rather as polygons or a bitmap mask for each annotation, and it stores the category with each annotation.

So I see this mapping from colour to category name as part of conversion (#34), just as the VOC converter accepts a mapping from the stored category name to the WeedCOCO category name (see https://github.com/Sydney-Informatics-Hub/Weed-ID-Interchange/blob/voc-convert/weedcoco/tests/importers/voc_data/category_name_map1.yaml for an example, and https://github.com/Sydney-Informatics-Hub/Weed-ID-Interchange/blob/6d823c364dfefe861d657439f3c72b269680da44/weedcoco/importers/voc.py#L117-L121 for the logic of loading it).

@jnothman jnothman added this to the October TCG milestone Oct 7, 2020
@jnothman
Copy link
Contributor

jnothman commented Feb 1, 2021

Fixed in segmentation mask importer

@jnothman jnothman closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants