dataeval.exceptions.MaiteShapeError¶
- exception dataeval.exceptions.MaiteShapeError¶
Raised when a dataset does not match the expected MAITE datum shape.
Public entry points that consume a MAITE-protocol dataset probe
dataset[0]and raise this error when the datum does not have the expected(image, target, metadata)3-tuple shape, or when the target does not match the protocol the consumer requires (e.g.ObjectDetectionTargetfor an object detection consumer).Inherits from
TypeErrorso callers that previously caught the silentIndexError/TypeErrorfrom downstream destructuring keep working.