This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TDA4VM:EdgeAI 中的子图构建期间出现警告消息

Guru**** 2696775 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1592143/tda4vm-warning-message-during-subgraph-build-in-edgeai

器件型号: TDA4VM

当我执行 onnxrt_ep.py 以使用 EdgeAI 从 ONNX 模型创建 C7x/MMA 子图时、输出了以下警告:

[TIDL Import]【解析器】警告:无法在系数文件中找到(或不匹配)批规范层/image_feature_extractor/classifier/classifier.1/BatchNormalization 的系数、将仅生成随机偏倚以用于评估用途。 结果都是随机的

 

最终生成了 subgraph_0_tidl_io_1.bin 和 subgraph_0_tidl_net.bin、但与原始模型相比、DL 模型的推理精度更差。

 

我检查了 ONNX 模型,并确认 BatchNormalization 系数(比例,偏倚,平均值,var )包含在 ONNX 模型中。
我想了解为什么会出现上述警告。

 

【批规范层信息】
图层名称:/image_feature_extractor/classifier/classifier.1/BatchNormalization
输入:['/image_feature_extractor/classifier/classifier.0/gemm_output_0'、'image_feature_extractor.classifier.1.weight'、'image_feature_extractor.classifier.1.bias'、'image_feature_extractor.classifier.1.running_mean'、'image_feature_extractor.classifier.1.running_var']
 比例:形状=(256,)、值=[1.1268132 1.0953617 1.0602216 1.0512887 1.0615304]...
 偏差:形状=(256,)、值=[ 0.04006692 –0.00317158 0.11233094 0.05100823 0.06738901] ……
 平均值:Shape=(256,)、值=[ 0.74641293 –0.41657835 –0.89521265 1.0307984 0.2722881 ]。
 Var:Shape=(256,)、Values =[0.7691257 0.73115873 1.0528616 0.4682764 0.86819524]...

 

谢谢你。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    我们在美国度过感恩节假期、12 月 1 日会再来。

    此致、

    Chris

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好;

    感谢您问这个问题。  

    您是如何运行 onnxrt_ep.py 文件的? 您能否提供此文件和模型(onnx 格式)。 这样我们就可以复制您所做的操作。

    您还提到推理精度更差。 您能否向我们展示一下您是如何检查精度的?

    此致

    Wen Li

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、感谢您提供相关信息。 我知道您无法共享模型。   

    我将尝试使用一个简单的模型来完成你的流程,看看我们是否可以发现任何异常。

    此致

    Wen Li