openvinotoolkit / anomalib

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
https://anomalib.readthedocs.io/en/latest/
Apache License 2.0
3.84k stars 681 forks source link

[Bug]: openvino export INT8_PTQ for winclip #2112

Open junxnone opened 5 months ago

junxnone commented 5 months ago

Describe the bug

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

as the nncf api documents:

Dataset

MVTec

Model

Other (please specify in the field below)

Steps to reproduce the behavior

WinCLIP

OS information

OS information:

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

samet-akcay commented 4 months ago

@alexsu52, any insights on this?