anomalib.models.dfm.lightning_model¶
DFM: Deep Feature Kernel Density Estimation.
Module Contents¶
Classes¶
DFM: Deep Featured Kernel Density Estimation. |
|
DFM: Deep Featured Kernel Density Estimation. |
Attributes¶
- class anomalib.models.dfm.lightning_model.Dfm(backbone: str, layer: str, pre_trained: bool = True, pooling_kernel_size: int = 4, pca_level: float = 0.97, score_type: str = 'fre')[source]¶
Bases:
anomalib.models.components.AnomalyModuleDFM: Deep Featured Kernel Density Estimation.
- Parameters
backbone (str) – Backbone CNN network
layer (str) – Layer to extract features from the backbone CNN
pre_trained (bool, optional) – Boolean to check whether to use a pre_trained backbone.
pooling_kernel_size (int, optional) – Kernel size to pool features extracted from the CNN. Defaults to 4.
pca_level (float, optional) – Ratio from which number of components for PCA are calculated. Defaults to 0.97.
score_type (str, optional) – Scoring type. Options are fre and nll. Defaults to “fre”.
nll – for Gaussian modeling, fre: pca feature reconstruction error
- static configure_optimizers() None[source]¶
DFM doesn’t require optimization, therefore returns no optimizers.