Torch Dataclasses#
The torch dataclasses module provides PyTorch-based implementations of the generic dataclasses used in Anomalib. These classes are designed to work with PyTorch tensors for efficient data handling and processing in anomaly detection tasks.
Overview#
The module includes several categories of dataclasses:
Base Classes: Generic PyTorch-based data structures
Image Classes: Specialized for image data processing
Video Classes: Designed for video data handling
Depth Classes: Specific to depth-based anomaly detection
Base Classes#
DatasetItem#
Batch#
InferenceBatch#
ToNumpyMixin#
Image Classes#
ImageItem#
ImageBatch#
Video Classes#
VideoItem#
VideoBatch#
Depth Classes#
DepthItem#
DepthBatch#
See Also#
../numpy