Skip to content

[Bug]: importing anomalib.models package is issueing a polluting warning about missing openvino #2384

@Yann-CV

Description

@Yann-CV

Describe the bug

Simply import anomalib.models will display the following warning: OpenVINO is not installed. Please install OpenVINO to use OpenVINOInferencer.

Dataset

N/A

Model

N/A

Steps to reproduce the behavior

import anomalib.models

OS information

OS information:

  • OS: Ubuntu 22.04
  • Python version: 3.10.14
  • Anomalib version: 1.1.1

Expected behavior

the warning is issued only when the OpenVINOInferencer is of use

Screenshots

No response

Pip/GitHub

pip

What version/branch did you use?

No response

Configuration YAML

not related

Logs

OpenVINO is not installed. Please install OpenVINO to use OpenVINOInferencer.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions