dataeval.typing¶
Common type protocols used for interoperability with DataEval.
Attributes¶
Type alias for a Union representing objects that can be coerced into an array. |
|
Type alias for a Union representing types that specify a torch.device. |
|
Type alias for an |
|
Type alias for an image classification datum tuple. |
|
Type alias for an |
|
Type alias for an object detection datum tuple. |
|
Type alias for an |
|
Type alias for an image classification datum tuple. |
Classes¶
Protocol for a generic AnnotatedDataset. |
|
Protocol for array objects providing interoperability with DataEval. |
|
Protocol for a generic Dataset. |
|
Dataset level metadata required for all AnnotatedDataset classes. |
|
Protocol for targets in an Object Detection dataset. |
|
Protocol for targets in a Segmentation dataset. |
|
Protocol defining a transform function. |
Module Contents¶
- type dataeval.typing.ArrayLike = numpy.typing.ArrayLike¶
Type alias for a Union representing objects that can be coerced into an array.
See also
- type dataeval.typing.DeviceLike = int | str | tuple[str, int] | torch.device¶
Type alias for a Union representing types that specify a torch.device.
See also
- type dataeval.typing.ImageClassificationDataset = AnnotatedDataset[ImageClassificationDatum]¶
Type alias for an
AnnotatedDatasetofImageClassificationDatumelements.
- type dataeval.typing.ImageClassificationDatum = tuple[ArrayLike, ArrayLike, DatumMetadata]¶
Type alias for an image classification datum tuple.
- type dataeval.typing.ObjectDetectionDataset = AnnotatedDataset[ObjectDetectionDatum]¶
Type alias for an
AnnotatedDatasetofObjectDetectionDatumelements.
- type dataeval.typing.ObjectDetectionDatum = tuple[ArrayLike, ObjectDetectionTarget, DatumMetadata]¶
Type alias for an object detection datum tuple.
ArrayLikeof shape (C, H, W) - Image data in channel, height, width format.ObjectDetectionTarget- Object detection target information for the image.dict[str, Any] - Datum level metadata.
- type dataeval.typing.SegmentationDataset = AnnotatedDataset[SegmentationDatum]¶
Type alias for an
AnnotatedDatasetofSegmentationDatumelements.
- type dataeval.typing.SegmentationDatum = tuple[ArrayLike, SegmentationTarget, DatumMetadata]¶
Type alias for an image classification datum tuple.
ArrayLikeof shape (C, H, W) - Image data in channel, height, width format.SegmentationTarget- Segmentation target information for the image.dict[str, Any] - Datum level metadata.