-
Notifications
You must be signed in to change notification settings - Fork 694
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
[Task]: Add unit tests for Engine.export
#2273
Comments
Can you provide more context regarding the issue? |
I would like to work on this issue. |
@sky0walker99, sure, thanks for your interest. @ashwinvaidya17, can you provide an acceptance criteria for @sky0walker99 |
OpenVINO export also supports post training optimization, and neural network compression. These can be enabled by passing additional parameters to anomalib/tests/integration/cli/test_cli.py Line 159 in bcc0b43
The tests do not check these two features of OpenVINO export. Since the API has changed over time, the PTQ and NNCF CLI invocation has diverged from that mentioned here in the docstrings. anomalib/src/anomalib/engine/engine.py Line 937 in bcc0b43
Also, since these don't fall under the coverage tests, we don't come to know when they break. The solution to address this can be as simple as extending the OpenVINO export tests to add POT and NNCF parameters to the list so that we can then test 1. Normal OpenVINO export, 2. All the combination of compression types listed here anomalib/src/anomalib/deploy/export.py Line 36 in bcc0b43
|
What is the motivation for this task?
Currently, export types like NNCF and POT do not fall under testing. This leads to outdated docstrings and broken functionality.
Describe the solution you'd like
The test can be as simple as optimizing a pre-trained Padim model. We already have the trained checkpoint available in a fixture.
Additional context
No response
The text was updated successfully, but these errors were encountered: