trainFCDDAnomalyDetector
R2026bTrain fully convolutional data description (FCDD) anomaly detection network
Since R2022b
Syntax
Description
trains the FCDD anomaly detection network detector = trainFCDDAnomalyDetector(normalData,anomalyData,untrainedDetector,options)untrainedDetector. The
training data consists of normal images in normalData and anomaly
images in anomalyData. The options argument
controls options for training.
Note
This functionality requires Deep Learning Toolbox™.
Note
To improve training results, you can use a Parallel Computing Toolbox™ license with a CUDA® enabled NVIDIA® GPU. For information about the supported compute capabilities, see GPU Computing Requirements (Parallel Computing Toolbox).
trains the FCDD anomaly detection network detector = trainFCDDAnomalyDetector(normalData,untrainedDetector,options)untrainedDetector using only
normal images. The function internally generates synthetic anomaly training data by using
confetti noise on the normal data. Use this syntax when you do not have enough real anomaly
data. (since R2026b)
specifies additional options using one or more name-value arguments in addition to any
combination of input arguments from previous syntaxes. For example,
detector = trainFCDDAnomalyDetector(___,Name=Value)FreezeBackbone=true freezes the backbone of the FCDD network.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Algorithms
When you train the anomaly detector without anomaly data, the function internally generates synthetic anomaly data using confetti noise on the normal data to train the anomaly detector. Confetti noise captures the localized nature of real anomalies using a simple, controllable model in the form of rectangular blobs of random sizes, at random positions, with random rotations. The blobs also have additional noise and random transparency. This enables the anomaly detector to simulate defects without real anomalies.

