Introduction
PatchCore is a CNN-based model that uses a backbone network pretrained on large natural image datasets (ImageNet) for feature extraction. PatchCore uses a network pre-trained on ImageNet. As the features at specific network hierarchies play an important role, we use to denote the features for image (with dataset ) and hierarchy-level of the pre-trained network . If not noted otherwise, indexes feature maps from ResNet-like architectures, such as ResNet-50 or WideResNet-50, with indicating the final output of respective spatial resolution blocks.Key Features
- Patch-based Approach: Operates on image patches rather than whole images
- Coreset Sampling: Reduces memory requirements by selecting representative patches
- Pretrained Features: Leverages features from networks pretrained on ImageNet
How It Works
- Feature Extraction: Extract patch-level features from intermediate layers of a pretrained CNN
- Memory Bank Construction: Build a memory bank of nominal patch features
- Coreset Reduction: Apply coreset sampling to reduce memory requirements while maintaining coverage
- Anomaly Scoring: For test images, compute distance to nearest neighbors in the memory bank

