trainPatchCoreAnomalyDetector
Syntax
Description
trains the input PatchCore anomaly detection network detector
= trainPatchCoreAnomalyDetector(normalData
,detectorIn
)detectorIn
. The
training data consists of normal images in normalData
.
Note
This functionality requires Deep Learning Toolbox™ and the Automated Visual Inspection Library for Computer Vision Toolbox™. You can install the Automated Visual Inspection Library for Computer Vision Toolbox from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Note
It is recommended that you also have Parallel Computing Toolbox™ to use with a CUDA®-enabled NVIDIA® GPU. For information about the supported compute capabilities, see GPU Computing Requirements (Parallel Computing Toolbox).
specifies options that control aspects of network creation and training as one or more
name-value arguments, in addition to all input arguments from the previous syntax.detector
= trainPatchCoreAnomalyDetector(___,Name=Value
)
Examples
Input Arguments
Output Arguments
Tips
For a given training image size and number of training images, if the peak memory usage for creating a memory bank exceeds the available memory, PatchCore outputs a warning. To decrease memory usage, try reducing image resolution, using fewer training images, or enhancing GPU performance (in this order to balance the ease of implementation with the target outcome of lowering memory usage).