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

Incorrect order of labels in the exported masks #2032

Closed
KouateMuhamed opened this issue Aug 14, 2020 · 6 comments · Fixed by #2048
Closed

Incorrect order of labels in the exported masks #2032

KouateMuhamed opened this issue Aug 14, 2020 · 6 comments · Fixed by #2048
Assignees
Labels
bug Something isn't working
Milestone

Comments

@KouateMuhamed
Copy link

KouateMuhamed commented Aug 14, 2020

Hi!

I'm trying to annotate images for a semantic segmentation task.

Once my images were uploaded, I made the polygonal labeling of the objects of interest using two classes.

However, when I go to "Dump annotatations> Segmentation mask 1.1"
I get two folders: "SegmentationClass" and "SegmentationObject."
In the first folder I have the masks of only ONE class, while in the second folder I have the masks with all the objects noted, but with different colors.

I would like to have masks where annotated objects appear with a single color per class.

Example: [class1] = cat (red) [class2] = dog [yellow]
Like the semantic segmentation in this pic: https://www.jeremyjordan.me/content/images/2018/05/Screen-Shot-2018-05-21-at-10.44.23-PM.png

How can I do?

Thanks in advance

@zhiltsov-max
Copy link
Contributor

Hello. The masks you're looking for should be in the SegmentationClass directory. Could you check if labelmap.txt contains all the classes the task has? Please, also specify your CVAT version.

@KouateMuhamed
Copy link
Author

Thank you for the answer!

Yer the labelmap.txt contains all the classes that the task has:
# label:color_rgb:parts:actions Cat:48,112,32:: background:0,0,0:: Dog:176,112,32::

CVAT version:
Server version: 1.1b0
Core version: 3.1.1
Canvas version: 2.0.1
UI version: 1.6.2

@zhiltsov-max
Copy link
Contributor

Could you specify the commit hash (git log -1)?

@KouateMuhamed
Copy link
Author

Could you specify the commit hash (git log -1)?

Where can I find it?

@zhiltsov-max
Copy link
Contributor

If you downloaded the project by cloning the repository, you need to type the command above. If you just downloaded a release or an archive from github - please tell the version.

@zhiltsov-max zhiltsov-max self-assigned this Aug 14, 2020
@zhiltsov-max zhiltsov-max added the bug Something isn't working label Aug 14, 2020
@zhiltsov-max zhiltsov-max added this to the 1.1.0-release milestone Aug 14, 2020
@KouateMuhamed
Copy link
Author

KouateMuhamed commented Aug 14, 2020

If you downloaded the project by cloning the repository, you need to type the command above. If you just downloaded a release or an archive from github - please tell the version.

Commit hash:
5b9a1dc

@zhiltsov-max zhiltsov-max changed the title Dump annotations Incorrect order of labels in the exported masks Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants