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

Support QDQ format of Conv, ultraface model #65

Merged
merged 10 commits into from
Dec 26, 2022
Merged

Support QDQ format of Conv, ultraface model #65

merged 10 commits into from
Dec 26, 2022

Conversation

Pzzzzz5142
Copy link
Contributor

@Pzzzzz5142 Pzzzzz5142 commented Dec 22, 2022

Related Issue: #51

  • Add QDQ format of ultraface.

Some issues:

  • Since there is no official implement of onnx-fashion rounding, so we have rounding error.

  • For some of the ops like relu, reshape, ppq doesn't provide scale and zero points. I infer these from the succeeding op.(maybe this is not a good choice)

  • Most of ops cannot read int8 weight when lowering to INT8. I only modified ConvOp to make it support int8 weight reading.

  • Only support the first format described in Support ONNX PPQ quantized model #51 for this is the only format ppq now officially support for symmetric quantization. See here.

@Pzzzzz5142 Pzzzzz5142 changed the title Support QDQ format of Conv Support QDQ format of Conv, ultraface model Dec 23, 2022
@charlesxzb charlesxzb merged commit 3c27b85 into sophgo:master Dec 26, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants