Abstract
- https://github.com/wogur110/PNI_Anomaly_Detection,based on PatchCore & better
- Ranked #4 on Anomaly Detection on BTAD (using extra training data)
- PNI Ensemble is ranked #7 on MVTec AD ****(using extra training data)

- cables are normal only when the color order is correct,
- if the color order is incorrect, the product is defective, even though all the local features are normal.
- PatchCore: image-level memory bank of neighbourhood-aware patch-level features 如何理解左下anomaly的粗的地方score高?
Introduction
baseline: PatchCore.
Proposed three components:
- Neighbor
- train a MLP to model the probability distribution of normal features conditioned by neighboring features
- the input is the concatenated neighboring features
- MLP observes a large support region, while the features remain local, allowing the proposed method to produce a finely detailed localization map.
- 和大patch有啥区别?
- Position
- Construct a histogram of all the training features to model a conditional probability distribution given the positional information.
- These two distributions are combined to estimate the likelihood and anomaly score
- Anomaly map refinement
- Instead of simply resizing the anomaly map ⇒ an additional refine network trained
on synthetic anomaly images to better interpolate and account for the shape and edge of the input image.

- Neighbor: 98.92% to 99.44%
- Position: provides an additional gain in object subcategories, but there is little improvement observed in texture subcategories.
- Refine: more effective in texture subcategories and has complementary properties with position information