SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.13671 · 2024

FiLo: Zero-Shot Anomaly Detection by Fine-Grained Description and High-Quality Localization

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 12 functions out of this paper's own repositories and ran 5 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
casia-iva-lab/filo canonical 5 of 12
FunctionStatusWhere it lives
convert_to_custom_text_state_dict Ran casia-iva-lab/filo/models/vv_open_clip/model.py
code served (permissive licence) · get_code("f19962ebb134b3d7")
get_cast_dtype Ran casia-iva-lab/filo/models/vv_open_clip/model.py
code served (permissive licence) · get_code("dcd422d66b0581d8")
load_state_dict Ran casia-iva-lab/filo/models/vv_open_clip/factory.py
code served (permissive licence) · get_code("4b3a4d17e1df3140")
smooth Ran casia-iva-lab/filo/utils/loss.py
code served (permissive licence) · get_code("abedbe9b904a9780")
sparsity Ran casia-iva-lab/filo/utils/loss.py
code served (permissive licence) · get_code("208456d9417303f4")
build_model_from_openai_state_dict Not yet run casia-iva-lab/filo/models/vv_open_clip/model.py
code served (permissive licence) · get_code("566817905973a0e8")
gather_features Not yet run casia-iva-lab/filo/models/vv_open_clip/loss.py
code served (permissive licence) · get_code("ddcbd45e940484ee")
get_model_config Not yet run casia-iva-lab/filo/models/vv_open_clip/factory.py
code served (permissive licence) · get_code("5c7cf820e99443ff")
get_tokenizer Not yet run casia-iva-lab/filo/models/vv_open_clip/factory.py
code served (permissive licence) · get_code("f34d8f34635af394")
load_openai_model Not yet run casia-iva-lab/filo/models/vv_open_clip/openai.py
code served (permissive licence) · get_code("a1693b09a14a516f")
prepare_inputs_for_generation Not yet run casia-iva-lab/filo/models/vv_open_clip/coca_model.py
code served (permissive licence) · get_code("fb651d0a97fd4d3f")
register_pooler Not yet run casia-iva-lab/filo/models/vv_open_clip/hf_model.py
code served (permissive licence) · get_code("2a377da4a76a2d44")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Zero-shot anomaly detection (ZSAD) methods entail detecting anomalies directly without access to any known normal or abnormal samples within the target item categories. Existing approaches typically rely on the robust generalization capabilities of multimodal pretrained models, computing similarities between manually crafted textual features representing "normal" or "abnormal" semantics and image features to detect anomalies and localize anomalous patches. However, the generic descriptions of "abnormal" often fail to precisely match diverse types of anomalies across different object categories. Additionally, computing feature similarities for single patches struggles to pinpoint specific locations of anomalies with various sizes and scales. To address these issues, we propose a novel ZSAD method called FiLo, comprising two components: adaptively learned Fine-Grained Description (FG-Des) and position-enhanced High-Quality Localization (HQ-Loc). FG-Des introduces fine-grained anomaly descriptions for each category using Large Language Models (LLMs) and employs adaptively learned textual templates to enhance the accuracy and interpretability of anomaly detection. HQ-Loc, utilizing Grounding DINO for preliminary localization, position-enhanced text prompts, and Multi-scale Multi-shape Cross-modal Interaction (MMCI) module, facilitates more accurate localization of anomalies of different sizes and shapes. Experimental results on datasets like MVTec and VisA demonstrate that FiLo significantly improves the performance of ZSAD in both detection and localization, achieving state-of-the-art performance with an image-level AUC of 83.9% and a pixel-level AUC of 95.9% on the VisA dataset. Code is available at https://github.com/CASIA-IVA-Lab/FiLo.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.13671")
get_code_for_paper("2404.13671")
have("2404.13671")

Connect an agent — have() is free.