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
多个不同scale的输入,量化影响了结果 #152
Comments
我们应该先解决MQBench模拟结果与SNPE实测结果相差较大的问题 |
1、Backbone用的是Mobilenet v2; |
此外,我还做了一组实验,如果把bbox那个输入和上采样去掉,直接由image features产生head2。虽然head2的结果会差一点,但是MQBench量化的结果和SNPE执行的结果,是能匹配上的。所以也怀疑是bbox那个输入头构造的方式的问题。坐标输入是4个0~1之间的float值,经过gemm上采样+conv,参数量剧增,这种由窄到宽的结构,不知道量化的时候,放大误差的影响? |
可否尝试替换relu6 |
尝试替换了从bbox坐标输入头到head2输出头这一路的relu6,都换成relu。结果还是一样的。 |
两个输入都有encoding时,MQBench与SNPE能对齐吗 |
仍旧不能对齐。 2、我使用的SNPE的指令如下: snpe-onnx-to-dlc --input_network mqbench_qmodel_deploy_model.onnx --output_path tmp.dlc --quantization_overrides snpe-dlc-quantize --input_dlc tmp.dlc --input_list file_list.txt --output_dlc model.dlc --override_params --bias_bitwidth 32 3、我的各个输出头,都是CONV2D + view 的形式,我发现json文件中,对输出头给出的encoding,都是CONV2D那一层输出的encoding。 |
This issue has not received any updates in 120 days. Please reply to this issue if this still unresolved! |
任务的模型有两个输入,一个是image,经过backbone后得到image features,另一个是输入其他detection模型检测得到的bbox 坐标,坐标经过了归一化,是0~1之间的float值。坐标经过线性层以及卷积层的上采样,结果与image features做concat。使用MQBench量化后,发现INT8的推理结果,对于head1精度很高,但是head2有明显的精度损失。
网络定义如下:
想问下这种结构的网络一般怎么处理?
The text was updated successfully, but these errors were encountered: