datumaro.components.errors#

Exceptions

AnnotationExportError(item_id)

Method generated by attrs for class ItemExportError.

AnnotationImportError(item_id)

Method generated by attrs for class ItemImportError.

AnnotationTypeError

AnnotationsTooCloseError(item_id, a, b, distance)

Method generated by attrs for class AnnotationsTooCloseError.

AttributeDefinedButNotFound(severity, ...)

Method generated by attrs for class AttributeDefinedButNotFound.

BrokenAnnotation(severity, item_id, subset, ...)

Method generated by attrs for class BrokenAnnotation.

CategoriesRedefinedError

ConflictingCategoriesError([msg, sources])

DatasetError

DatasetExportError

DatasetImportError

DatasetInfosRedefinedError

DatasetItemValidationError(severity, ...)

Method generated by attrs for class DatasetItemValidationError.

DatasetMergeError([msg, sources])

DatasetNotFoundError(path, format[, template])

Method generated by attrs for class DatasetNotFoundError.

DatasetQualityError

DatasetValidationError(severity)

Method generated by attrs for class DatasetValidationError.

DatumaroError

EmptyCaption(severity, item_id, subset, ...)

Method generated by attrs for class EmptyCaption.

EmptyCommitError

EmptyLabel(severity, item_id, subset, label_name)

Method generated by attrs for class EmptyLabel.

EmptyPipelineError

FailedAttrVotingError(item_id, attr, votes, ...)

Method generated by attrs for class FailedAttrVotingError.

FailedLabelVotingError(item_id, votes[, ...])

Method generated by attrs for class FailedLabelVotingError.

FarFromAttrMean(severity, item_id, subset, ...)

Method generated by attrs for class FarFromAttrMean.

FarFromCaptionMean(severity, item_id, ...)

Method generated by attrs for class FarFromCaptionMean.

FarFromLabelMean(severity, item_id, subset, ...)

Method generated by attrs for class FarFromLabelMean.

FewSamplesInAttribute(severity, label_name, ...)

Method generated by attrs for class FewSamplesInAttribute.

FewSamplesInCaption(severity, caption_name, ...)

Method generated by attrs for class FewSamplesInCaption.

FewSamplesInLabel(severity, label_name, count)

Method generated by attrs for class FewSamplesInLabel.

ForeignChangesError

ImbalancedAttribute(severity, label_name, ...)

Method generated by attrs for class ImbalancedAttribute.

ImbalancedCaptions(severity)

Method generated by attrs for class ImbalancedCaptions.

ImbalancedDistInAttribute(severity, ...)

Method generated by attrs for class ImbalancedDistInAttribute.

ImbalancedDistInCaption(severity, caption_name)

Method generated by attrs for class ImbalancedDistInCaption.

ImbalancedDistInLabel(severity, label_name, prop)

Method generated by attrs for class ImbalancedDistInLabel.

ImbalancedLabels(severity)

Method generated by attrs for class ImbalancedLabels.

ImmutableObjectError

InvalidAnnotationError

A basic dataset parsing error.

InvalidFieldError(name)

Method generated by attrs for class InvalidFieldError.

InvalidFieldTypeError(name, actual, expected)

Method generated by attrs for class InvalidFieldTypeError.

InvalidPipelineError

InvalidStageError

InvalidValue(severity, item_id, subset, ...)

Method generated by attrs for class InvalidValue.

ItemExportError(item_id)

Represents additional item error info.

ItemImportError(item_id)

Wraps a dataset parsing error and provides additional error context info.

LabelDefinedButNotFound(severity, label_name)

Method generated by attrs for class LabelDefinedButNotFound.

MediaShapeError

MediaTypeError

MigrationError

MismatchingAttributesError(item_id, key, a, b, *)

Method generated by attrs for class MismatchingAttributesError.

MismatchingImageInfoError(item_id, a, b, *)

Method generated by attrs for class MismatchingImageInfoError.

MismatchingMediaError(item_id, a, b, *[, ...])

Method generated by attrs for class MismatchingMediaError.

MismatchingMediaPathError(item_id, a, b, *)

Method generated by attrs for class MismatchingMediaPathError.

MismatchingObjectError

MissingAnnotation(severity, item_id, subset, ...)

Method generated by attrs for class MissingAnnotation.

MissingAttribute(severity, item_id, subset, ...)

Method generated by attrs for class MissingAttribute.

MissingFieldError(name)

Method generated by attrs for class MissingFieldError.

MissingLabelCategories(severity)

Method generated by attrs for class MissingLabelCategories.

MissingObjectError

MissingPipelineHeadError

MissingSourceHashError

MultiLabelAnnotations(severity, item_id, subset)

Method generated by attrs for class MultiLabelAnnotations.

MultipleFormatsMatchError(formats)

Method generated by attrs for class MultipleFormatsMatchError.

MultiplePipelineHeadsError

NegativeLength(severity, item_id, subset, ...)

Method generated by attrs for class NegativeLength.

NoMatchingAnnError(item_id, ann, *[, sources])

Method generated by attrs for class NoMatchingAnnError.

NoMatchingFormatsError

NoMatchingItemError(item_id, *[, sources])

Method generated by attrs for class NoMatchingItemError.

NotAvailableError

OldProjectError

OnlyOneAttributeValue(severity, label_name, ...)

Method generated by attrs for class OnlyOneAttributeValue.

OnlyOneLabel(severity, label_name)

Method generated by attrs for class OnlyOneLabel.

OutlierInCaption(severity, item_id, subset, ...)

Method generated by attrs for class OutlierInCaption.

PathOutsideSourceError

PathSeparatorInSubsetNameError(subset)

Method generated by attrs for class PathSeparatorInSubsetNameError.

PipelineError

ProjectAlreadyExists(path)

Method generated by attrs for class ProjectAlreadyExists.

ProjectNotFoundError(path)

Method generated by attrs for class ProjectNotFoundError.

ReadonlyDatasetError

ReadonlyProjectError

RedundanciesInCaption(severity, ...)

Method generated by attrs for class RedundanciesInCaption.

RepeatedItemError(item_id)

Method generated by attrs for class RepeatedItemError.

SourceExistsError(name)

Method generated by attrs for class SourceExistsError.

SourceUrlInsideProjectError

StreamedItemError()

Method generated by attrs for class StreamedItemError.

UndeclaredLabelError(id)

Method generated by attrs for class UndeclaredLabelError.

UndefinedAttribute(severity, item_id, ...)

Method generated by attrs for class UndefinedAttribute.

UndefinedLabel(severity, item_id, subset, ...)

Method generated by attrs for class UndefinedLabel.

UnexpectedUrlError

UnknownFormatError(format)

Method generated by attrs for class UnknownFormatError.

UnknownRefError(ref)

Method generated by attrs for class UnknownRefError.

UnknownSourceError(name)

Method generated by attrs for class UnknownSourceError.

UnknownStageError

UnknownTargetError(name)

Method generated by attrs for class UnknownTargetError.

UnsavedChangesError(paths)

Method generated by attrs for class UnsavedChangesError.

VcsAlreadyExists(path)

Method generated by attrs for class VcsAlreadyExists.

VcsError

VideoMergeError(item_id, *[, sources])

Method generated by attrs for class VideoMergeError.

WrongGroupError(item_id, found, expected, group)

Method generated by attrs for class WrongGroupError.

exception datumaro.components.errors.ImmutableObjectError[source]#

Bases: Exception

exception datumaro.components.errors.DatumaroError[source]#

Bases: Exception

exception datumaro.components.errors.VcsError[source]#

Bases: DatumaroError

exception datumaro.components.errors.ReadonlyDatasetError[source]#

Bases: VcsError

exception datumaro.components.errors.ReadonlyProjectError[source]#

Bases: VcsError

exception datumaro.components.errors.UnknownRefError(ref)[source]#

Bases: VcsError

Method generated by attrs for class UnknownRefError.

ref#
exception datumaro.components.errors.MissingObjectError[source]#

Bases: VcsError

exception datumaro.components.errors.MismatchingObjectError[source]#

Bases: VcsError

exception datumaro.components.errors.UnsavedChangesError(paths)[source]#

Bases: VcsError

Method generated by attrs for class UnsavedChangesError.

paths#
exception datumaro.components.errors.ForeignChangesError[source]#

Bases: VcsError

exception datumaro.components.errors.EmptyCommitError[source]#

Bases: VcsError

exception datumaro.components.errors.PathOutsideSourceError[source]#

Bases: VcsError

exception datumaro.components.errors.SourceUrlInsideProjectError[source]#

Bases: VcsError

exception datumaro.components.errors.UnexpectedUrlError[source]#

Bases: VcsError

exception datumaro.components.errors.MissingSourceHashError[source]#

Bases: VcsError

exception datumaro.components.errors.PipelineError[source]#

Bases: DatumaroError

exception datumaro.components.errors.InvalidPipelineError[source]#

Bases: PipelineError

exception datumaro.components.errors.EmptyPipelineError[source]#

Bases: InvalidPipelineError

exception datumaro.components.errors.MultiplePipelineHeadsError[source]#

Bases: InvalidPipelineError

exception datumaro.components.errors.MissingPipelineHeadError[source]#

Bases: InvalidPipelineError

exception datumaro.components.errors.InvalidStageError[source]#

Bases: InvalidPipelineError

exception datumaro.components.errors.UnknownStageError[source]#

Bases: InvalidStageError

exception datumaro.components.errors.MigrationError[source]#

Bases: DatumaroError

exception datumaro.components.errors.OldProjectError[source]#

Bases: DatumaroError

exception datumaro.components.errors.NotAvailableError[source]#

Bases: DatumaroError

exception datumaro.components.errors.ProjectNotFoundError(path)[source]#

Bases: DatumaroError

Method generated by attrs for class ProjectNotFoundError.

path#
exception datumaro.components.errors.ProjectAlreadyExists(path)[source]#

Bases: DatumaroError

Method generated by attrs for class ProjectAlreadyExists.

path#
exception datumaro.components.errors.VcsAlreadyExists(path)[source]#

Bases: DatumaroError

Method generated by attrs for class VcsAlreadyExists.

path#
exception datumaro.components.errors.UnknownSourceError(name)[source]#

Bases: DatumaroError

Method generated by attrs for class UnknownSourceError.

name#
exception datumaro.components.errors.UnknownTargetError(name)[source]#

Bases: DatumaroError

Method generated by attrs for class UnknownTargetError.

name#
exception datumaro.components.errors.UnknownFormatError(format)[source]#

Bases: DatumaroError

Method generated by attrs for class UnknownFormatError.

format#
exception datumaro.components.errors.SourceExistsError(name)[source]#

Bases: DatumaroError

Method generated by attrs for class SourceExistsError.

name#
exception datumaro.components.errors.DatasetExportError[source]#

Bases: DatumaroError

exception datumaro.components.errors.ItemExportError(item_id: Tuple[str, str])[source]#

Bases: DatasetExportError

Represents additional item error info. The error itself is supposed to be in the __cause__ member.

Method generated by attrs for class ItemExportError.

item_id: Tuple[str, str]#
exception datumaro.components.errors.AnnotationExportError(item_id: Tuple[str, str])[source]#

Bases: ItemExportError

Method generated by attrs for class ItemExportError.

item_id: Tuple[str, str]#
exception datumaro.components.errors.DatasetImportError[source]#

Bases: DatumaroError

exception datumaro.components.errors.InvalidAnnotationError[source]#

Bases: DatasetImportError

A basic dataset parsing error. Should include the problem description in the message.

exception datumaro.components.errors.InvalidFieldError(name: str)[source]#

Bases: InvalidAnnotationError

Method generated by attrs for class InvalidFieldError.

name: str#

Field name

exception datumaro.components.errors.InvalidFieldTypeError(name: str, actual: str, expected: Tuple[str])[source]#

Bases: InvalidFieldError

Method generated by attrs for class InvalidFieldTypeError.

actual: str#

Actual type of the field

expected: Tuple[str]#

The list of expected types of the field

exception datumaro.components.errors.MissingFieldError(name: str)[source]#

Bases: InvalidFieldError

Method generated by attrs for class MissingFieldError.

exception datumaro.components.errors.UndeclaredLabelError(id: str)[source]#

Bases: InvalidAnnotationError

Method generated by attrs for class UndeclaredLabelError.

id: str#

Index or name

exception datumaro.components.errors.ItemImportError(item_id: Tuple[str | None, str | None])[source]#

Bases: DatasetImportError

Wraps a dataset parsing error and provides additional error context info. The error itself is supposed to be in the __cause__ member.

Method generated by attrs for class ItemImportError.

item_id: Tuple[str | None, str | None]#

(id, subset) of the item with problem. If id or subset cannot be reported, such field is set to None.

exception datumaro.components.errors.AnnotationImportError(item_id: Tuple[str | None, str | None])[source]#

Bases: ItemImportError

Method generated by attrs for class ItemImportError.

item_id: Tuple[str | None, str | None]#

(id, subset) of the item with problem. If id or subset cannot be reported, such field is set to None.

exception datumaro.components.errors.DatasetNotFoundError(path: str, format: str, template: str = "Failed to find dataset '{format}' at '{path}'")[source]#

Bases: DatasetImportError

Method generated by attrs for class DatasetNotFoundError.

path: str#
format: str#
template: str#
exception datumaro.components.errors.MultipleFormatsMatchError(formats)[source]#

Bases: DatasetImportError

Method generated by attrs for class MultipleFormatsMatchError.

formats#
exception datumaro.components.errors.NoMatchingFormatsError[source]#

Bases: DatasetImportError

exception datumaro.components.errors.DatasetError[source]#

Bases: DatumaroError

exception datumaro.components.errors.AnnotationTypeError[source]#

Bases: DatumaroError

exception datumaro.components.errors.MediaTypeError[source]#

Bases: DatumaroError

exception datumaro.components.errors.MediaShapeError[source]#

Bases: DatumaroError

exception datumaro.components.errors.DatasetInfosRedefinedError[source]#

Bases: DatasetError

exception datumaro.components.errors.CategoriesRedefinedError[source]#

Bases: DatasetError

exception datumaro.components.errors.RepeatedItemError(item_id)[source]#

Bases: DatasetError

Method generated by attrs for class RepeatedItemError.

item_id#
exception datumaro.components.errors.PathSeparatorInSubsetNameError(subset: str)[source]#

Bases: DatasetError

Method generated by attrs for class PathSeparatorInSubsetNameError.

subset: str#
exception datumaro.components.errors.DatasetQualityError[source]#

Bases: DatasetError

exception datumaro.components.errors.AnnotationsTooCloseError(item_id, a, b, distance)[source]#

Bases: DatasetQualityError

Method generated by attrs for class AnnotationsTooCloseError.

item_id#
a#
b#
distance#
exception datumaro.components.errors.WrongGroupError(item_id, found, expected, group)[source]#

Bases: DatasetQualityError

Method generated by attrs for class WrongGroupError.

item_id#
found#
expected#
group#
exception datumaro.components.errors.DatasetMergeError(msg=None, *, sources=None)[source]#

Bases: DatasetError

sources#
exception datumaro.components.errors.MismatchingImageInfoError(item_id: Tuple[str, str], a: Tuple[int, int], b: Tuple[int, int], *, sources=_Nothing.NOTHING)[source]#

Bases: DatasetMergeError

Method generated by attrs for class MismatchingImageInfoError.

item_id: Tuple[str, str]#
a: Tuple[int, int]#
b: Tuple[int, int]#
exception datumaro.components.errors.MismatchingMediaPathError(item_id: Tuple[str, str], a: str, b: str, *, sources=_Nothing.NOTHING)[source]#

Bases: DatasetMergeError

Method generated by attrs for class MismatchingMediaPathError.

item_id: Tuple[str, str]#
a: str#
b: str#
exception datumaro.components.errors.MismatchingMediaError(item_id: Tuple[str, str], a: Any, b: Any, *, sources=_Nothing.NOTHING)[source]#

Bases: DatasetMergeError

Method generated by attrs for class MismatchingMediaError.

item_id: Tuple[str, str]#
a: Any#
b: Any#
exception datumaro.components.errors.MismatchingAttributesError(item_id: Tuple[str, str], key: str, a: Any, b: Any, *, sources=_Nothing.NOTHING)[source]#

Bases: DatasetMergeError

Method generated by attrs for class MismatchingAttributesError.

item_id: Tuple[str, str]#
key: str#
a: Any#
b: Any#
exception datumaro.components.errors.ConflictingCategoriesError(msg=None, *, sources=None)[source]#

Bases: DatasetMergeError

sources#
exception datumaro.components.errors.NoMatchingAnnError(item_id, ann, *, sources=_Nothing.NOTHING)[source]#

Bases: DatasetMergeError

Method generated by attrs for class NoMatchingAnnError.

item_id#
ann#
exception datumaro.components.errors.NoMatchingItemError(item_id, *, sources=_Nothing.NOTHING)[source]#

Bases: DatasetMergeError

Method generated by attrs for class NoMatchingItemError.

item_id#
exception datumaro.components.errors.FailedLabelVotingError(item_id, votes, ann=None, *, sources=_Nothing.NOTHING)[source]#

Bases: DatasetMergeError

Method generated by attrs for class FailedLabelVotingError.

item_id#
votes#
ann#
exception datumaro.components.errors.FailedAttrVotingError(item_id, attr, votes, ann, *, sources=_Nothing.NOTHING)[source]#

Bases: DatasetMergeError

Method generated by attrs for class FailedAttrVotingError.

item_id#
attr#
votes#
ann#
exception datumaro.components.errors.VideoMergeError(item_id, *, sources=_Nothing.NOTHING)[source]#

Bases: DatasetMergeError

Method generated by attrs for class VideoMergeError.

item_id#
exception datumaro.components.errors.DatasetValidationError(severity)[source]#

Bases: DatumaroError

Method generated by attrs for class DatasetValidationError.

severity#
to_dict()[source]#
exception datumaro.components.errors.DatasetItemValidationError(severity, item_id, subset)[source]#

Bases: DatasetValidationError

Method generated by attrs for class DatasetItemValidationError.

item_id#
subset#
to_dict()[source]#
exception datumaro.components.errors.MissingLabelCategories(severity)[source]#

Bases: DatasetValidationError

Method generated by attrs for class MissingLabelCategories.

exception datumaro.components.errors.MissingAnnotation(severity, item_id, subset, ann_type)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class MissingAnnotation.

ann_type#
exception datumaro.components.errors.BrokenAnnotation(severity, item_id, subset, ann_type)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class BrokenAnnotation.

ann_type#
exception datumaro.components.errors.EmptyLabel(severity, item_id, subset, label_name)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class EmptyLabel.

label_name#
exception datumaro.components.errors.EmptyCaption(severity, item_id, subset, caption_name)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class EmptyCaption.

caption_name#
exception datumaro.components.errors.MultiLabelAnnotations(severity, item_id, subset)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class MultiLabelAnnotations.

exception datumaro.components.errors.MissingAttribute(severity, item_id, subset, label_name, attr_name)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class MissingAttribute.

label_name#
attr_name#
exception datumaro.components.errors.UndefinedLabel(severity, item_id, subset, label_name)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class UndefinedLabel.

label_name#
exception datumaro.components.errors.UndefinedAttribute(severity, item_id, subset, label_name, attr_name)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class UndefinedAttribute.

label_name#
attr_name#
exception datumaro.components.errors.LabelDefinedButNotFound(severity, label_name)[source]#

Bases: DatasetValidationError

Method generated by attrs for class LabelDefinedButNotFound.

label_name#
exception datumaro.components.errors.AttributeDefinedButNotFound(severity, label_name, attr_name)[source]#

Bases: DatasetValidationError

Method generated by attrs for class AttributeDefinedButNotFound.

label_name#
attr_name#
exception datumaro.components.errors.OnlyOneLabel(severity, label_name)[source]#

Bases: DatasetValidationError

Method generated by attrs for class OnlyOneLabel.

label_name#
exception datumaro.components.errors.OnlyOneAttributeValue(severity, label_name, attr_name, value)[source]#

Bases: DatasetValidationError

Method generated by attrs for class OnlyOneAttributeValue.

label_name#
attr_name#
value#
exception datumaro.components.errors.FewSamplesInLabel(severity, label_name, count)[source]#

Bases: DatasetValidationError

Method generated by attrs for class FewSamplesInLabel.

label_name#
count#
exception datumaro.components.errors.FewSamplesInCaption(severity, caption_name, count)[source]#

Bases: DatasetValidationError

Method generated by attrs for class FewSamplesInCaption.

caption_name#
count#
exception datumaro.components.errors.RedundanciesInCaption(severity, caption_name, redundancy_type, count)[source]#

Bases: DatasetValidationError

Method generated by attrs for class RedundanciesInCaption.

caption_name#
redundancy_type#
count#
exception datumaro.components.errors.FewSamplesInAttribute(severity, label_name, attr_name, attr_value, count)[source]#

Bases: DatasetValidationError

Method generated by attrs for class FewSamplesInAttribute.

label_name#
attr_name#
attr_value#
count#
exception datumaro.components.errors.ImbalancedLabels(severity)[source]#

Bases: DatasetValidationError

Method generated by attrs for class ImbalancedLabels.

exception datumaro.components.errors.ImbalancedCaptions(severity)[source]#

Bases: DatasetValidationError

Method generated by attrs for class ImbalancedCaptions.

exception datumaro.components.errors.ImbalancedAttribute(severity, label_name, attr_name)[source]#

Bases: DatasetValidationError

Method generated by attrs for class ImbalancedAttribute.

label_name#
attr_name#
exception datumaro.components.errors.ImbalancedDistInLabel(severity, label_name, prop)[source]#

Bases: DatasetValidationError

Method generated by attrs for class ImbalancedDistInLabel.

label_name#
prop#
exception datumaro.components.errors.ImbalancedDistInCaption(severity, caption_name)[source]#

Bases: DatasetValidationError

Method generated by attrs for class ImbalancedDistInCaption.

caption_name#
exception datumaro.components.errors.ImbalancedDistInAttribute(severity, label_name, attr_name, attr_value, prop)[source]#

Bases: DatasetValidationError

Method generated by attrs for class ImbalancedDistInAttribute.

label_name#
attr_name#
attr_value#
prop#
exception datumaro.components.errors.NegativeLength(severity, item_id, subset, ann_id, prop, val)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class NegativeLength.

ann_id#
prop#
val#
exception datumaro.components.errors.InvalidValue(severity, item_id, subset, ann_id, prop)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class InvalidValue.

ann_id#
prop#
exception datumaro.components.errors.FarFromLabelMean(severity, item_id, subset, label_name, ann_id, prop, mean, val)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class FarFromLabelMean.

label_name#
ann_id#
prop#
mean#
val#
exception datumaro.components.errors.FarFromCaptionMean(severity, item_id, subset, caption_name, mean, upper_bound, lower_bound, val)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class FarFromCaptionMean.

caption_name#
mean#
upper_bound#
lower_bound#
val#
exception datumaro.components.errors.OutlierInCaption(severity, item_id, subset, caption_name, lower_bound, upper_bound, val)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class OutlierInCaption.

caption_name#
lower_bound#
upper_bound#
val#
exception datumaro.components.errors.FarFromAttrMean(severity, item_id, subset, label_name, ann_id, attr_name, attr_value, prop, mean, val)[source]#

Bases: DatasetItemValidationError

Method generated by attrs for class FarFromAttrMean.

label_name#
ann_id#
attr_name#
attr_value#
prop#
mean#
val#
exception datumaro.components.errors.StreamedItemError[source]#

Bases: DatasetError

Method generated by attrs for class StreamedItemError.