anomalib icon indicating copy to clipboard operation
anomalib copied to clipboard

[Bug]: openvino export INT8_PTQ for winclip

Open junxnone opened this issue 8 months ago • 1 comments

Describe the bug

https://github.com/openvinotoolkit/anomalib/blob/3fe55842cf7bf1024ed43022d5859600052a4ed0/src/anomalib/models/components/base/export_mixin.py#L251

as the nncf api documents:

  • Is the model_type should be set Transformer for WinCLIP : model_type=nncf.parameters.ModelType.TRANSFORMER

Dataset

MVTec

Model

Other (please specify in the field below)

Steps to reproduce the behavior

WinCLIP

OS information

OS information:

  • OS: [e.g. Ubuntu 20.04]
  • Python version: [e.g. 3.10.0]
  • Anomalib version: [e.g. 0.3.6]
  • PyTorch version: [e.g. 1.9.0]
  • CUDA/cuDNN version: [e.g. 11.1]
  • GPU models and configuration: [e.g. 2x GeForce RTX 3090]
  • Any other relevant information: [e.g. I'm using a custom dataset]

Expected behavior

model = nncf.quantize(model, calibration_dataset, model_type=nncf.parameters.ModelType.TRANSFORMER)

Screenshots

No response

Pip/GitHub

pip

What version/branch did you use?

No response

Configuration YAML

None

Logs

None

Code of Conduct

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

junxnone avatar Jun 05 '24 07:06 junxnone