-
Notifications
You must be signed in to change notification settings - Fork 233
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
[Good First Issue][NNCF]: fix invalid error reporting in JSON schema #2570
Comments
.take |
Thank you for looking into this issue! Please let us know if you have any questions or require any help. |
Hi @ljaljushkin @vshampor, I've been working on this issue for the last few days and I would appreciate your assistance. Could you please help me identify the source of the error? I need to know if it's originating from jsocschema.validate or from sparsity.py. |
This comment was marked as outdated.
This comment was marked as outdated.
@LalitSP feel free to open PR, it's hard to judge by the provided code snippet. |
Hello! I wish to work on this issue. |
Greetings, @RitikaxShakya! Currently, @LalitSP is working on that. There's a PR with a possible fix already #2597, but it's not finished yet: some comments and tests should be resolved. |
@ljaljushkin Okay Cool! No problem. Thank you for replying. I would like to know if there are more gfi I can work on :) |
There are still contributors needed for a few GFI: And, potentially, at least this GFI might need a new contributor - #2571 |
@ljaljushkin Cool! Thank you so much! i will take a look, found one and will work on it! if there seems to be no activity on #2571 by current contributor then i would like to take up that issue. |
The assignee was unassigned due to the lack of activity. |
@ljaljushkin Can i take this issue? |
sure! just add a comment with |
.take |
Thank you for looking into this issue! Please let us know if you have any questions or require any help. |
Is this issue being worked on actively? If not, I'm ready to take it up. |
@anzr299 Yes i am working on it. |
Hello @RitikaxShakya, are you still working on that issue? Do you need any help? |
Context
Configuration for NNCF algorithms can be defined in JSON format. For instance, [config.json].(https://github.com/openvinotoolkit/nncf/blob/develop/examples/torch/classification/configs/sparsity_quantization/inception_v3_imagenet_rb_sparsity_int8.json#L17-L38)
Compression section in these configuration files are validated using jsonschema.validate
But there's some bug with reporting error in JSON schema when a field is not defined in schema.
Steps to reproduce:
checkout https://github.com/ljaljushkin/nncf_pytorch/tree/nl/bug_in_schema_report
There's unit test checking 2 config files:
To run tests:
The expected behavior, that the first test should pass, the second — fail.
But the reported error in the second test should be the following:
However, the second test reports this, which is not correct:
The message is misleading, because it's saying that the supported schedule type
polynomial
for rb_sparsity doesn't correspond to the list of supported schedule types for the filter pruning algorithm.https://openvinotoolkit.github.io/nncf/schema/index.html#compression_oneOf_i0_oneOf_i1_params_schedule
https://openvinotoolkit.github.io/nncf/schema/index.html#tab-pane_compression_oneOf_i0_oneOf_i9
filter pruning's definition: https://github.com/openvinotoolkit/nncf/blob/develop/nncf/config/schemata/algo/filter_pruning.py#L88
rb sparsity's definition:
https://github.com/openvinotoolkit/nncf/blob/develop/nncf/config/schemata/common/sparsity.py#L52C14-L52C30
What needs to be done?
Fix the error reporting for the given test case
Example Pull Requests
The issue is not reproduced before these changes:
Refactor schemata and prepare for rendering. (#1268)
Resources
Here's the automatically generated page with parameters from json schema.
https://openvinotoolkit.github.io/nncf/schema/index.html#compression
Contact points
@ljaljushkin @vshampor
Ticket
94933
The text was updated successfully, but these errors were encountered: