Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: AttributeError while exporting the model in OpenVINO format with ACQ #2593

Open
1 task done
srikesh-07 opened this issue Mar 8, 2025 · 0 comments
Open
1 task done

Comments

@srikesh-07
Copy link

Describe the bug

Hello,

I am currently trying to export a model to OpenVINO format with ACQ. I have been facing the issue #2592. After solving the issue, I am experiencing the following error,

AttributeError: 'str' object has no attribute 'update'

I have also attached an screenshot which have detailed traceback.

Dataset

MVTecAD

Model

PADiM

Steps to reproduce the behavior

  1. Install anomalib using pip.
  2. Execute the following command,
AnomalibCLI(
    args=[
        "export",
        "--export_type",
        ExportType.OPENVINO,
        "--compression_type",
        CompressionType.INT8_PTQ,
        "--data",
        MVTec,
        "--data.root",
        f"{project_path}/Padim/MVTec
        "--data.category",
        "dummy",
        "--model",
        "AUPRO",
        "--default_root_dir",
        str(project_path),
        "--trainer.max_epochs",
        "1",
        "--ckpt_path",
        f"{project_path}/Padim/MVTec/dummy/v0/weights/lightning/model.ckpt",
    ],
)

OS information

OS information:

  • OS: Ubuntu 20.04
  • Python version: 3.11.11
  • Anomalib version: 2.0.0b2
  • PyTorch version: 2.5.1
  • CUDA/cuDNN version: 12.4
  • GPU models and configuration: Tesla T4
  • Any other relevant information: Used MVTecAD dummy dataset provided with test scripts.

Expected behavior

The model should be converted to OpenVINO format with PTQ after successful execution.

Screenshots

Image

Pip/GitHub

pip

What version/branch did you use?

main

Configuration YAML

No Configuration YAML since AnomaliB CLI have been used.

Logs

The error arises from `models/components/base/export_mixin.py`

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant