datumaro.components.errors#
Exceptions
|
Method generated by attrs for class ItemExportError. |
|
Method generated by attrs for class ItemImportError. |
|
Method generated by attrs for class AnnotationsTooCloseError. |
|
Method generated by attrs for class AttributeDefinedButNotFound. |
|
Method generated by attrs for class BrokenAnnotation. |
|
|
|
Method generated by attrs for class DatasetItemValidationError. |
|
|
|
Method generated by attrs for class DatasetNotFoundError. |
|
Method generated by attrs for class DatasetValidationError. |
|
Method generated by attrs for class EmptyCaption. |
|
Method generated by attrs for class EmptyLabel. |
|
Method generated by attrs for class FailedAttrVotingError. |
|
Method generated by attrs for class FailedLabelVotingError. |
|
Method generated by attrs for class FarFromAttrMean. |
|
Method generated by attrs for class FarFromCaptionMean. |
|
Method generated by attrs for class FarFromLabelMean. |
|
Method generated by attrs for class FewSamplesInAttribute. |
|
Method generated by attrs for class FewSamplesInCaption. |
|
Method generated by attrs for class FewSamplesInLabel. |
|
Method generated by attrs for class ImbalancedAttribute. |
|
Method generated by attrs for class ImbalancedCaptions. |
|
Method generated by attrs for class ImbalancedDistInAttribute. |
|
Method generated by attrs for class ImbalancedDistInCaption. |
|
Method generated by attrs for class ImbalancedDistInLabel. |
|
Method generated by attrs for class ImbalancedLabels. |
A basic dataset parsing error. |
|
|
Method generated by attrs for class InvalidFieldError. |
|
Method generated by attrs for class InvalidFieldTypeError. |
|
Method generated by attrs for class InvalidValue. |
|
Represents additional item error info. |
|
Wraps a dataset parsing error and provides additional error context info. |
|
Method generated by attrs for class LabelDefinedButNotFound. |
|
Method generated by attrs for class MismatchingAttributesError. |
|
Method generated by attrs for class MismatchingImageInfoError. |
|
Method generated by attrs for class MismatchingMediaError. |
|
Method generated by attrs for class MismatchingMediaPathError. |
|
Method generated by attrs for class MissingAnnotation. |
|
Method generated by attrs for class MissingAttribute. |
|
Method generated by attrs for class MissingFieldError. |
|
Method generated by attrs for class MissingLabelCategories. |
|
Method generated by attrs for class MultiLabelAnnotations. |
|
Method generated by attrs for class MultipleFormatsMatchError. |
|
Method generated by attrs for class NegativeLength. |
|
Method generated by attrs for class NoMatchingAnnError. |
|
Method generated by attrs for class NoMatchingItemError. |
|
Method generated by attrs for class OnlyOneAttributeValue. |
|
Method generated by attrs for class OnlyOneLabel. |
|
Method generated by attrs for class OutlierInCaption. |
|
Method generated by attrs for class PathSeparatorInSubsetNameError. |
|
Method generated by attrs for class ProjectAlreadyExists. |
|
Method generated by attrs for class ProjectNotFoundError. |
|
Method generated by attrs for class RedundanciesInCaption. |
|
Method generated by attrs for class RepeatedItemError. |
|
Method generated by attrs for class SourceExistsError. |
Method generated by attrs for class StreamedItemError. |
|
Method generated by attrs for class UndeclaredLabelError. |
|
|
Method generated by attrs for class UndefinedAttribute. |
|
Method generated by attrs for class UndefinedLabel. |
|
Method generated by attrs for class UnknownFormatError. |
|
Method generated by attrs for class UnknownRefError. |
|
Method generated by attrs for class UnknownSourceError. |
|
Method generated by attrs for class UnknownTargetError. |
|
Method generated by attrs for class UnsavedChangesError. |
|
Method generated by attrs for class VcsAlreadyExists. |
|
Method generated by attrs for class VideoMergeError. |
|
Method generated by attrs for class WrongGroupError. |
- exception datumaro.components.errors.VcsError[source]#
Bases:
DatumaroError
- exception datumaro.components.errors.UnknownRefError(ref)[source]#
Bases:
VcsError
Method generated by attrs for class UnknownRefError.
- ref#
- exception datumaro.components.errors.UnsavedChangesError(paths)[source]#
Bases:
VcsError
Method generated by attrs for class UnsavedChangesError.
- paths#
- 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.
- exception datumaro.components.errors.AnnotationExportError(item_id: Tuple[str, str])[source]#
Bases:
ItemExportError
Method generated by attrs for class ItemExportError.
- 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.
- exception datumaro.components.errors.InvalidFieldTypeError(name: str, actual: str, expected: Tuple[str])[source]#
Bases:
InvalidFieldError
Method generated by attrs for class InvalidFieldTypeError.
- 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.
- 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.
- exception datumaro.components.errors.AnnotationImportError(item_id: Tuple[str | None, str | None])[source]#
Bases:
ItemImportError
Method generated by attrs for class ItemImportError.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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#
- exception datumaro.components.errors.DatasetItemValidationError(severity, item_id, subset)[source]#
Bases:
DatasetValidationError
Method generated by attrs for class DatasetItemValidationError.
- item_id#
- subset#
- 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.
- 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.
- count#
- exception datumaro.components.errors.RedundanciesInCaption(severity, caption_name, redundancy_type, count)[source]#
Bases:
DatasetValidationError
Method generated by attrs for class RedundanciesInCaption.
- 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.
- 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.
- 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.
- 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.