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

Clarify GT format #10

Open
bertsky opened this issue Jan 30, 2021 · 1 comment
Open

Clarify GT format #10

bertsky opened this issue Jan 30, 2021 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@bertsky
Copy link

bertsky commented Jan 30, 2021

Please help me understand this:

Ground truth format

Lables for each pixel are identified by a number. So if you have a
binary case, n_classes should be set to 2 and labels should
be 0 and 1 for each class and pixel.

In the case of multiclass, just set n_classes to the number of classes
you have and the try to produce the labels by pixels set from 0 , 1 ,2 .., n_classes-1.
The labels format should be png.

If you have an image label for a binary case it should look like this:

Label: [ [[1 0 0 1], [1 0 0 1] ,[1 0 0 1]],
[[1 0 0 1], [1 0 0 1] ,[1 0 0 1]] ,
[[1 0 0 1], [1 0 0 1] ,[1 0 0 1]] ]

This means that you have an image by 3*4*3 and pixel[0,0] belongs
to class 1 and pixel[0,1] belongs to class 0.

First, that's just not true: the array shown is not 3*4*3, but 3x3x4. Next, pixel[0,0] then is not 1, but [1 0 0 1].

Now, when you say The labels format should be png here, I take it GT is supposed to be presented as pseudo/indexed-color PNG files of the same resolution as the input image and with color values for classes. Is that correct so far?

Then why does the example array have 3 (not 2) dimensions?

Maybe it would also help to show an actual image / label-image pair example ...

@ss756
Copy link

ss756 commented May 16, 2021

Would be helpful if some could clarify the structure for constructing the mask for the images

@cneud cneud added the documentation Improvements or additions to documentation label Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants