TransFusion -- A Transparency-Based Diffusion Model for Anomaly Detection

Matic Fučka, Vitjan Zavrtanik, Danijel Skočaj
11/16/2023
cs.CV

Official code: MaticFuc/ECCV_TransFusion (52 stars, MIT, last commit 2025-04-07).

Abstract

Surface anomaly detection is a vital component in manufacturing inspection. Current discriminative methods follow a two-stage architecture composed of a reconstructive network followed by a discriminative network that relies on the reconstruction output. Currently used reconstructive networks often produce poor reconstructions that either still contain anomalies or lack details in anomaly-free regions. Discriminative methods are robust to some reconstructive network failures, suggesting that the discriminative network learns a strong normal appearance signal that the reconstructive networks miss. We reformulate the two-stage architecture into a single-stage iterative process that allows the exchange of information between the reconstruction and localization. We propose a novel transparency-based diffusion process where the transparency of anomalous regions is progressively increased, restoring their normal appearance accurately while maintaining the appearance of anomaly-free regions using localization cues of previous steps. We implement the proposed process as TRANSparency DifFUSION (TransFusion), a novel discriminative anomaly detection method that achieves state-of-the-art performance on both the VisA and the MVTec AD datasets, with an image-level AUROC of 98.5% and 99.2%, respectively. Code: https://github.com/MaticFuc/ECCV_TransFusion

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of the ECCV 2024 paper: TransFusion -- A Transparency-Based Diffusion Model for Anomaly Detection

524Shell, PythonJul 4, 20241 years agoMIT
anomaly-detectiondeep-learningeccv2024mvtec-3d-admvtec-ad+2 more

Similar Papers

Cite this paper

@article{fuka2023transfusion,
  title  = {TransFusion -- A Transparency-Based Diffusion Model for Anomaly Detection},
  author = {Matic Fučka and Vitjan Zavrtanik and Danijel Skočaj},
  year   = {2023},
  eprint = {2311.09999},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.09999v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.09999.svg)](https://codeofpaper.com/paper/2311.09999)

Discussion