fiftyone.core.annotation.validate_label_schemas#
Annotation label schema validation
Exceptions:
Validation errors for label schemas |
Functions:
|
Validates label schemas for a |
- exception fiftyone.core.annotation.validate_label_schemas.ValidationErrors#
Bases:
ExceptionGroupValidation errors for label schemas
Methods:
Exception.add_note(note) -- add a note to the exception
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
Attributes:
nested exceptions
exception message
- add_note()#
Exception.add_note(note) โ add a note to the exception
- args#
- derive()#
- exceptions#
nested exceptions
- message#
exception message
- split()#
- subgroup()#
- with_traceback()#
Exception.with_traceback(tb) โ set self.__traceback__ to tb and return self.
- fiftyone.core.annotation.validate_label_schemas.validate_label_schemas(sample_collection, label_schema, fields=None, _allow_default=False)#
Validates label schemas for a
fiftyone.core.collections.SampleCollection. Seegenerate_label_schemas()for acceptable label schema specifications- Parameters:
sample_collection โ the
fiftyone.core.collections.SampleCollectionlabel_schema โ a label schemas
dictor an individual fieldโs label schemadictif only one field is providedfields (None) โ a field name,
embedded.field.nameor iterable of such values
- Raises:
ValidationErrors โ if the label schema(s) are invalid