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
DSR
This is the implementation of the DSR paper.
Model Type: Segmentation
Description
DSR is a quantized-feature based algorithm that consists of an autoencoder with one encoder and two decoders, coupled with an anomaly detection module. DSR learns a codebook of quantized representations on ImageNet, which are then used to encode input images. These quantized representations also serve to sample near-in-distribution anomalies, since they do not rely on external datasets. Training takes place in three phases. The encoder and "general object decoder", as well as the codebook, are pretrained on ImageNet. Defects are then generated at the feature level using the codebook on the quantized representations, and are used to train the object-specific decoder as well as the anomaly detection module. In the final phase of training, the upsampling module is trained on simulated image-level smudges in order to output more robust anomaly maps.
Architecture
.. image:: https://raw.githubusercontent.com/open-edge-platform/anomalib/main/docs/source/images/dsr/architecture.png
:alt: DSR Architecture
.. automodule:: anomalib.models.image.dsr.torch_model
:members:
:undoc-members:
:show-inheritance:
.. automodule:: anomalib.models.image.dsr.lightning_model
:members:
:undoc-members:
:show-inheritance:
.. automodule:: anomalib.models.image.dsr.anomaly_generator
:members:
:undoc-members:
:show-inheritance:
.. automodule:: anomalib.models.image.dsr.loss
:members:
:undoc-members:
:show-inheritance: