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.

[参考译文] TDA4VP-Q1:edgeai-tidl-tools vs app_tidl_od:TIDL 图的输出节点与 tivxDrawBoxDetectionsNode 不兼容?

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1596897/tda4vp-q1-edgeai-tidl-tools-vs-app_tidl_od-the-output-node-s-of-tidl-graph-incompatible-with-tivxdrawboxdetectionsnode

器件型号: TDA4VP-Q1

尊敬的支持团队:

我尝试将 ONNX 对象检测模型部署到基于 TDA4VP 的器件、因此必须将该模型部署为 TIDLP-RT 格式(由于一些技术限制,目前我绑定到 SDK 版本 9.2)。

如此论坛中其他地方所述、旧的 RTOS 工具 (tidl_model_import) 已被弃用、应使用 edgeai-tidl-tools 进行 TIDL-RT 转换。 但是、 在使用 edgeai-tidl-tools 后、我从未设法在目标上完成转换模型的工作。 我用于运行模型的代码基于 app_tidl_od、似乎由 edgeai-tidl-tools 转换的检测器的张量输出与  tivxDrawBoxDetectionsNode 不直接兼容。

我想知道、这是已知问题吗? 我是否应该使用另一个示例代码来运行由  edgeai-tidl-tools 转换的模型、或者它只是我这边的一些错误(应该在转换流水线的参数中进行配置,或者在 tivxDrawBoxDetectionsParams 中的某个位置)

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

    尊敬的 Viachaslau:

    我可能无法正确读取该消息、但 tidl_model_import.out 在较新的版本中提供、是在 TIDLRT 下进行编译的工具。  它可以在  edgeai-tidl-tools/tools/中找到 /tidl_tools (10.01+) 或 edgeai-tidl-tools/tidl_tools(10.01 之前)中。  它尚未被弃用、但建议使用 OSRT 方法、因为它更容易使用。   

    我们需要模型和您的配置文件来准确地响应您的消息的其余部分。

    此致、

    Chris

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

    您好、Chris、

    感谢您的回答。 说到“预定/过时“、我指的是这个 E2E 主题:  TDA4VH-Q1:使用 C7x-MMA-tidl 生成工件 

    我可能误读了该线程、但基于该论坛线程的结论是、 不建议直接使用 tidl_model_import.out 工具(带有配置文件)、这与 edgeai-tidl-tools 中 Python 脚本的使用相反。

    此外、让我重新拟订我问题的第二部分。 一个由 Python 脚本转换的物体检测模型(假设我已经转换了 SSD-MobileNet-v2 使用 onnxrt_ep.py)、在目标板上运行它的最佳示例应用是什么?

    作为参考、我讨论的是 edgeai-tidl-tools 工程的直接示例(链接到 model_configs.py 中的行)、我使用默认配置(通过命令“")python3 ./onnxrt_ep.py -c -m od-ort-ssd-lite_mobilenetv2_fpn“)对其进行转换。

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

    尊敬的  Viachaslau:

    首先、使用 OSRT 在主机上编译工件(“使用python3 ./onnxrt_ep.py -c -m od-ort-ssd-lite_mobilenetv2_fpn).  To run on the device OSRT(python 代码)、只需在器件上克隆 edgai-tidl-tools、然后将工件从 edgeai-tidl-tools/model-artifacts 复制到相对于 edgeai-tidl-tools 位于同一位置的器件上。   您可能需要调整 edgeai-tidl-tools/examples/osrt_python/ort/model_configs.py 中的路径。   然后在设备上以相同的方式运行它(没有-c,因为您无法在设备上进行编译)。

    我的过程是在器件上创建一个目录/home/root 并克隆 edgeai-tidl-tools、以便我始终重新编号查找位置、但这是一种偏好。

    此致、

    Chris