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

SegmentationMask, BoundingBox #657

Open
VladimirAlexiev opened this issue May 15, 2024 · 1 comment
Open

SegmentationMask, BoundingBox #657

VladimirAlexiev opened this issue May 15, 2024 · 1 comment

Comments

@VladimirAlexiev
Copy link

Looking at unusual schema subclasses, I stumbled upon these two:

croissant:SegmentationMask a rdf:class ;
  rdfs:label "SegmentationMask" ;
  rdfs:comment "A data type representing a segmentation mask." ;
  rdfs:subClassOf schema:StructuredValue .

A segmentation mask is an array of pixels, right? Then schema:StructuredValue, if you look at its properties, is not at all appropriate.
You could use xsd:base64binary for the payload, but should also describe dimensions (width, height, pixel bit size).

croissant:BoundingBox a rdf:class ;
  rdfs:label "Label" ;
  rdfs:comment "A data type representing a bounding box." ;
  rdfs:subClassOf schema:Text .
@pierrot0
Copy link
Contributor

Segmentation mask:
https://github.com/mlcommons/croissant/blob/main/docs/croissant-spec.md#segmentationmask

The idea is to be able to specify the segmentation mask either as a sequence of coordinates (polygon) or has image overlays.

Bounding box:
https://github.com/mlcommons/croissant/blob/main/docs/croissant-spec.md#boundingbox

The idea is to be able to specify the bounding box using different formats, which schema.org/box doesn't allow.

In general, with Croissant, we tried to define a format which can be used to describe datasets packaged with most common formats, without imposing a particularly way of packaging such datasets (either file format, or data format).

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