All models

DeSTSeg

Anomaly detector pairing a frozen ResNet18 teacher with a denoising student and a segmentation network.

Segmentation · 386 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (415 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
35.2M
Operations
386
Framework
PyTorch
Recurrent
Yes
Published
CVPR 2023
Cited by
303 (as of 29 October 2026)
Authors
Xuan Zhang, Shiyu Li, Xi Li and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15808
Graph hash
096ea156dda22e682127df2f33f4c5833d93ada9901576e73cb6195b9a65f4ee
Skeleton hash
731f2d804756e955d1468462af487d1f03d80bf8169f743632a83b9c507afa18
Architecture hash
78cd0c3d99c6269798c6cb9057427e6fdc16e01949a26b2f048fac0b3adfd776
Diagram SHA-256
a2be5dbbbfb1037a85262f25d98f699f9b0098a36f2cc6f71bf03a6cc1cfa61b
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DeSTSeg is a visual anomaly detector that puts a pre-trained teacher network, a denoising student encoder-decoder and a segmentation network into one framework. Synthetic anomalies are introduced into normal training images, and the model is trained in two steps.

In the first step the student receives the corrupted image and learns to match the features the teacher computes from the same image without corruption. The teacher is an ImageNet pre-trained ResNet18 with the final block removed. The student's decoder is a reversed ResNet18 in which all downsampling is replaced with bilinear upsampling. In the second step both networks are frozen and the segmentation network is trained on their feature similarities. That network contains two residual blocks and one Atrous Spatial Pyramid Pooling (ASPP) module. It does no upsampling or downsampling. Its input, and so its output, is 1/4 of the input image size.

At inference the image-level anomaly score is the average of the top T values of the anomaly score map. The experiments use the MVTec AD dataset, with the Describable Textures Dataset (DTD) supplying the simulated anomalies. On that benchmark the paper reports 98.6% image-level AUC, 75.8% pixel-level average precision and 76.4% instance-level average precision.

Key idea. DeSTSeg trains a denoising student to match a teacher's clean-image features from corrupted inputs, and a segmentation network to fuse the multi-level student-teacher features.

  • DeSTSeg
  • anomaly detection
  • anomaly localization
  • student-teacher
  • knowledge distillation
  • denoising student
  • industrial inspection
  • MVTec AD
  • anomaly segmentation

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhang2023destsegsegmentationguideddenoising,
      title={DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detection}, 
      author={Xuan Zhang and Shiyu Li and Xi Li and Ping Huang and Jiulong Shan and Ting Chen},
      year={2023},
      eprint={2211.11317},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2211.11317}, 
}