mirror of
https://github.com/hanzoai/anomalib.git
synced 2026-10-30 18:48:11 +00:00
The previous commit was meant to remove .github/workflows and removed every tracked path instead — 892 files, the whole repo. This puts back the 874 that were never in scope; the eighteen workflow files stay gone, for the reasons that commit gives. Content is byte-identical to 9d2aec9 outside .github/workflows.
1.7 KiB
1.7 KiB
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.
.. currentmodule:: anomalib.data.dataclasses.torch
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
.. autoclass:: DatasetItem
:members:
:show-inheritance:
Batch
.. autoclass:: Batch
:members:
:show-inheritance:
InferenceBatch
.. autoclass:: InferenceBatch
:members:
:show-inheritance:
ToNumpyMixin
.. autoclass:: ToNumpyMixin
:members:
:show-inheritance:
Image Classes
ImageItem
.. autoclass:: ImageItem
:members:
:show-inheritance:
ImageBatch
.. autoclass:: ImageBatch
:members:
:show-inheritance:
Video Classes
VideoItem
.. autoclass:: VideoItem
:members:
:show-inheritance:
VideoBatch
.. autoclass:: VideoBatch
:members:
:show-inheritance:
Depth Classes
DepthItem
.. autoclass:: DepthItem
:members:
:show-inheritance:
DepthBatch
.. autoclass:: DepthBatch
:members:
:show-inheritance:
See Also
- {doc}
../index - {doc}
../numpy