Anomaly Model#

The AnomalyModel is a generic OpenVINO model that aims to provide a single interface for all the exported models based on Anomalib.

Currently, the AnomalyModel supports the following models:

  • Padim

  • STFPM

class AnomalyModel : public ImageModel#

Public Functions

AnomalyModel(std::shared_ptr<ov::Model> &model, const ov::AnyMap &configuration)#
AnomalyModel(std::shared_ptr<InferenceAdapter> &adapter, const ov::AnyMap &configuration = {})#
virtual std::unique_ptr<AnomalyResult> infer(const ImageInputData &inputData)#
virtual std::vector<std::unique_ptr<AnomalyResult>> inferBatch(const std::vector<ImageInputData> &inputImgs)#
virtual std::unique_ptr<ResultBase> postprocess(InferenceResult &infResult) override#

Public Static Functions

static std::unique_ptr<AnomalyModel> create_model(const std::string &modelFile, const ov::AnyMap &configuration = {}, bool preload = true, const std::string &device = "AUTO")#
static std::unique_ptr<AnomalyModel> create_model(std::shared_ptr<InferenceAdapter> &adapter)#

Public Static Attributes

static std::string ModelType = "AnomalyDetection"#

Friends

friend std::ostream &operator<<(std::ostream &os, std::unique_ptr<AnomalyModel> &model)#