fastFlowAnomalyDetector
Description
The fastFlowAnomalyDetector
object detects images of anomalies
using a FastFlow anomaly detector network. Train the detector using the trainFastFlowAnomalyDetector
function. To detect anomalous images, pass the
trained detector to the classify
function.
Note
This functionality requires Deep Learning Toolbox™. This functionality also requires the Deep Learning Toolbox Model for ResNet-18 Network and the Automated Visual Inspection Library for Computer Vision Toolbox™, which you can install from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Creation
Description
detector = fastFlowAnomalyDetector
creates a FastFlow anomaly
detector from a ResNet-18 backbone network. See resnet18
(Deep Learning Toolbox) for more
information.
detector = fastFlowAnomalyDetector(
specifies the Name=Value
)Backbone
,
NumFlowSteps
and FlowModelChannelRatio
properties of the FastFlow anomaly detector using
name-value arguments.
For example, NumFlowSteps=10
sets the number of steps in the flow
network of the FastFlow detector to 10.
Properties
Object Functions
predict | Predict unnormalized anomaly scores |
classify | Classify image as normal or anomalous |
anomalyMap | Predict per-pixel anomaly score map |
Examples
References
[1] Yu, Jiawei, Ye Zheng, Xiang Wang, Wei Li, Yushuang Wu, Rui Zhao, and Liwei Wu. "FastFlow: Unsupervised Anomaly Detection and Localization via 2D Normalizing Flows." arXiv, November 16, 2021. https://doi.org/10.48550/arXiv.2111.07677.