---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

[Models](/models)/[Quality & Anomaly](/models?category=quality)/amazon/patchcore-resnet50

PyTorchAnomaly DetectionApache 2.0

# patchcore-resnet50

by amazon

Memory-bank anomaly detection achieving 99.6% AUROC on manufacturing defects

180Kdl/month

25M (ResNet-50 backbone)params

[Source](https://github.com/amazon-research/patchcore-inspection)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`amazon/patchcore-resnet50`

## Deploy patchcore-resnet50

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

PatchCore solves cold-start anomaly detection in industrial manufacturing using only normal (non-defective) images. It builds a maximally representative memory bank of nominal patch-level features from ImageNet-pretrained models, then uses nearest-neighbor outlier detection.

On Mixpeek, PatchCore enables visual quality inspection: upload examples of normal products, and detect defects, anomalies, and deviations automatically.

## Architecture

Builds a coreset memory bank of mid-level patch features from a frozen ResNet-50 (ImageNet-pretrained). Uses greedy coreset subsampling for efficient memory. Anomaly scoring via nearest-neighbor distance to the memory bank.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so patchcore-resnet50 runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // Boxes, masks, depth maps and anomaly scores are structured
          // results, not vectors. They go in payload and are reachable
          // through pre\_filters on a retriever, not through similarity.
          payload: {
            detections: modelOutput,
            source\_key: "archive/2026/asset-00412",
          },
        },
      \],
    }),
  },
);

// No managed alternative for an open label set. Two extractors do emit a
// bbox, for the one thing each detects: document\_graph\_extractor@v1 per
// layout block, face\_identity\_extractor@v1 per face. Nothing ships that
// returns masks, depth maps or anomaly scores.

## Capabilities

*   99.6% AUROC on MVTec AD benchmark
*   Cold-start: only needs normal images, no defect examples
*   Pixel-level anomaly localization maps
*   Halved the error of previous best methods

## Use Cases on Mixpeek

Manufacturing defect detection and quality inspection

Visual anomaly detection with only 'good' training examples

Surface inspection for scratches, dents, discoloration

Automated QA in production pipelines

## Benchmarks

Dataset

Metric

Score

Source

MVTec AD

Image AUROC

99.1%

Roth et al., 2022: Table 1

MVTec AD

Pixel AUROC

98.1%

Roth et al., 2022: Table 1

## Performance

Input Size224×224 px

GPU Latency~8ms / image (A100)

CPU Latency~90ms / image

GPU Throughput~125 images/sec (A100)

GPU Memory~0.6 GB

Requires a reference corpus of normal images for comparison

## Common Pipeline Companions

[

openai/clip-vit-large-patch14

Visual search for normal references

](/model/openai/clip-vit-large-patch14)

## Explore on Mixpeek

[

More Quality & Anomaly models

Compare alternatives in this category

](/models?category=quality)[

Best Computer Vision APIs

Hand-picked tools & platforms compared

](/curated-lists/best-computer-vision-apis)[

How CLIP, SigLIP & CLAP Work

Deep-dive technical guide

](/guides/contrastive-learning-how-clip-siglip-and-clap-work)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkPyTorch

Organizationamazon

FeatureAnomaly Detection

Outputanomaly score + map

Modalitiesvideo, image

RetrieverAnomaly Filter

Parameters25M (ResNet-50 backbone)

LicenseApache 2.0

Downloads/mo180K

[

### Research Paper

Towards Total Recall in Industrial Anomaly Detection

arxiv.org](https://arxiv.org/abs/2106.08265)

### Build a pipeline with patchcore-resnet50

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

nvidia/Cosmos-Embed1-448p-anomaly-detection

Anomaly Detection

](/model/nvidia/Cosmos-Embed1-448p-anomaly-detection)[

Datadog/Toto-2.0-2.5B

Anomaly Detection

](/model/Datadog/Toto-2.0-2.5B)[

amazon/chronos-bolt-base

Anomaly Detection

](/model/amazon/chronos-bolt-base)[

google/timesfm-2.0-500m-pytorch

Anomaly Detection

](/model/google/timesfm-2.0-500m-pytorch)