Saved in:
Bibliographic Details
Main Authors: Sun, Han, Cao, Yunkang, Dong, Hao, Fink, Olga
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.01078
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916789028388864
author Sun, Han
Cao, Yunkang
Dong, Hao
Fink, Olga
author_facet Sun, Han
Cao, Yunkang
Dong, Hao
Fink, Olga
contents Visual anomaly detection (AD) presents significant challenges due to the scarcity of anomalous data samples. While numerous works have been proposed to synthesize anomalous samples, these synthetic anomalies often lack authenticity or require extensive training data, limiting their applicability in real-world scenarios. In this work, we propose Anomaly Anything (AnomalyAny), a novel framework that leverages Stable Diffusion (SD)'s image generation capabilities to generate diverse and realistic unseen anomalies. By conditioning on a single normal sample during test time, AnomalyAny is able to generate unseen anomalies for arbitrary object types with text descriptions. Within AnomalyAny, we propose attention-guided anomaly optimization to direct SD attention on generating hard anomaly concepts. Additionally, we introduce prompt-guided anomaly refinement, incorporating detailed descriptions to further improve the generation quality. Extensive experiments on MVTec AD and VisA datasets demonstrate AnomalyAny's ability in generating high-quality unseen anomalies and its effectiveness in enhancing downstream AD performance.
format Preprint
id arxiv_https___arxiv_org_abs_2406_01078
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Unseen Visual Anomaly Generation
Sun, Han
Cao, Yunkang
Dong, Hao
Fink, Olga
Computer Vision and Pattern Recognition
Visual anomaly detection (AD) presents significant challenges due to the scarcity of anomalous data samples. While numerous works have been proposed to synthesize anomalous samples, these synthetic anomalies often lack authenticity or require extensive training data, limiting their applicability in real-world scenarios. In this work, we propose Anomaly Anything (AnomalyAny), a novel framework that leverages Stable Diffusion (SD)'s image generation capabilities to generate diverse and realistic unseen anomalies. By conditioning on a single normal sample during test time, AnomalyAny is able to generate unseen anomalies for arbitrary object types with text descriptions. Within AnomalyAny, we propose attention-guided anomaly optimization to direct SD attention on generating hard anomaly concepts. Additionally, we introduce prompt-guided anomaly refinement, incorporating detailed descriptions to further improve the generation quality. Extensive experiments on MVTec AD and VisA datasets demonstrate AnomalyAny's ability in generating high-quality unseen anomalies and its effectiveness in enhancing downstream AD performance.
title Unseen Visual Anomaly Generation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2406.01078