<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[V851s] YOLOv5 v7.0 转 Acuity 6.6.1 深度解析：从 ONNX 崩溃到依赖地狱，以及三条出路的分析]]></title><description><![CDATA[<p dir="auto">【环境配置】</p>
<pre><code>开发主机：HP OMEN 9 (暗影精灵9)
主机系统：Ubuntu 22.04 (物理机)
主机显卡：
    NVIDIA GeForce RTX 4060 Laptop GPU (Device 28e0)
    Intel Corporation Device a788 (Intel 核显)
目标板卡：V851s
工具链版本：Acuity-Toolkit-Binary-6.6.1
Python 环境：Conda yolo5_retro (Python 3.8)
</code></pre>
<p dir="auto">【项目背景】<br />
正在部署开发板识别打火机的火的项目，基于 YOLOv5 v7.0 训练完成 <a href="http://best.pt" target="_blank" rel="noopener noreferrer nofollow ugc">best.pt</a>，目标是在 V851s NPU 上部署。目前在将模型转换为 Acuity 可用的 .nb 格式时，遇到了新旧工具链不兼容的严重问题，陷入了“依赖地狱”。</p>
<p dir="auto">【核心冲突】<br />
Acuity 6.6.1（2020年代工具）的底层库要求极其老旧，与现代 YOLOv5（2024年代码）及 PyTorch 生态的依赖完全互斥，导致无法构建一个同时满足“Acuity能运行”和“YOLOv5能导出”的 Python 环境。</p>
<p dir="auto">【详细排查过程与报错】</p>
<p dir="auto">路线一：ONNX 导入（遇到死胡同）</p>
<pre><code>模型导出操作：
使用 YOLOv5 v7.0 源码，执行：

python export.py --weights best.pt --include onnx --opset 9 --imgsz 640

 *结果*：成功生成 best.onnx，输入 [1, 3, 640, 640]。结构包含 onnx::Reshape_397, onnx::Sigmoid_440 等中间节点。

环境适配（痛苦过程）：
为了兼容 Acuity 6.6.1，我进行了强制降级：
    降级 numpy：pip install numpy==1.19.5 (Acuity 报错强制要求 &lt; 1.20)
    降级 onnx：pip install onnx==1.10.0
    降级 protobuf：pip install protobuf==3.20.3 (解决 Descriptor 验证错误)
    源码修补：由于 NumPy 1.19.5 在新 onnx 库下存在 API 废弃，手动修改了 .../site-packages/onnx/mapping.py，将 np.object 改为 object 才勉强让 import 不报错。

Acuity 导入操作：

pegasus import onnx --model best.onnx --mean-values 0 0 0 0.00392156862745098 --scale 0.017 0.017 0.017 --quantized-input on

关键报错：
Acuity 在解析图结构时内部崩溃：

I Start importing onnx...
...
File "acuitylib/app/importer/import_onnx.py", line 109, in run
    TypeError: object of type 'NoneType' has no len()

 *个人推测*：Acuity 6.6 的旧版解析器无法正确处理 YOLOv5 v7 的某些特定节点，或者因版本不匹配导致图属性读取为 None。
</code></pre>
<p dir="auto">路线二：TFLite 导入（遭遇依赖互斥）</p>
<pre><code>环境冲突 A (NumPy vs Pandas)：
Acuity 要求 numpy &lt; 1.20，但 YOLOv5 的 export.py 依赖 pandas，而新版本 pandas 拒绝在 numpy &lt; 1.20.3 上运行。这导致导出脚本甚至启动不了。

环境冲突 B (TensorFlow 版本)：
临时升级 numpy 并尝试 tensorflow 2.13.1，结果导出失败。

TensorFlow SavedModel: export failure ❌ 1.0s: 'anchors'
TensorFlow Lite: export failure ❌ 0.0s: 'NoneType' object has no attribute 'call'
AttributeError: 'NoneType' object has no attribute 'outputs'

 *推测*：YOLOv5 v7.0 脚本逻辑未适配 TF 2.13（正准备尝试降级 TF 2.10 验证）。
</code></pre>
<p dir="auto">【我的思考：三条可能的出路】</p>
<p dir="auto">目前卡在 ONNX 解析崩溃上，我思考了三条路，不知哪条是正解：</p>
<p dir="auto">方案一：寻找更新版本的 SDK / Acuity</p>
<pre><code>思路：是否存在针对 V851s 的更新版 Tina SDK？其中是否内置了 Acuity 7.x 或更高版本？
顾虑：非常担心“生成端”和“运行端”不匹配。如果我用新版 Acuity 生成 .nb，放到现有的 V851S 系统（SDK 里的驱动）跑，会不会直接报错 Version mismatch？
</code></pre>
<p dir="auto">方案二：降级 YOLOv5 版本（以退为进）</p>
<pre><code>思路：放弃 v7.0，改用 2020-2021 年的 YOLOv5 v6.0。那个时代的 ONNX 格式和依赖库应该完美契合 Acuity 6.6。
代价：需要重新训练模型。
问题：如果不换 SDK，这是否是唯一可行的工程方案？
</code></pre>
<p dir="auto">方案三：放弃 Acuity，换推理框架</p>
<pre><code>思路：改用 NCNN 或 TFLite + CPU 运行。
顾虑：V851S 性能有限，如果失去 NPU 加速，CPU 跑 YOLO 可能帧率极低，无法满足实时检测需求。
</code></pre>
<p dir="auto">【求助】<br />
以上是目前遇到的所有问题。恳请全志的大佬或有经验的朋友指点：</p>
<pre><code>我的 TypeError: object of type 'NoneType' has no len() 还有救吗？
V851s 是否有更新版 SDK 支持？如果没有，推荐我走哪条路？
</code></pre>
<p dir="auto">卡在这一步很久了，万分感谢！！！！</p>
]]></description><link>https://bbs.aw-ol.com/topic/6863/v851s-yolov5-v7-0-转-acuity-6-6-1-深度解析-从-onnx-崩溃到依赖地狱-以及三条出路的分析</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 10:42:18 GMT</lastBuildDate><atom:link href="https://bbs.aw-ol.com/topic/6863.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jan 2026 07:52:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [V851s] YOLOv5 v7.0 转 Acuity 6.6.1 深度解析：从 ONNX 崩溃到依赖地狱，以及三条出路的分析 on Wed, 21 Jan 2026 12:47:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://bbs.aw-ol.com/uid/1915">@awwwwa</a> 在 <a href="/post/28053">[V851s] YOLOv5 v7.0 转 Acuity 6.6.1 深度解析：从 ONNX 崩溃到依赖地狱，以及三条出路的分析</a> 中说：</p>
<blockquote>
<p dir="auto">Acuity-Toolkit-Binary-6.6.1 版本已经非常老了，建议更新下版本，社区目前有 Radxa 提供的 NPU 开发环境：<a href="https://docs.radxa.com/en/cubie/a5e/app-dev/npu-dev/cubie-acuity-sdk" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.radxa.com/en/cubie/a5e/app-dev/npu-dev/cubie-acuity-sdk</a></p>
</blockquote>
<p dir="auto">哇！！太感谢了太感谢了！当是我用ai找了好久都找不到这个Acutiy_Toolkit工具，官方教程给的是在有这个工具的基础之上操作的，需要用到这个工具里面的gegasus命令将格式转化成.nb格式，找了差不多一下午找不到这个工具，当时在百问网找过，弹出牛奶牛奶快传的广告，我在论坛和全志平台也找不到就没招了，大佬！！太感谢了！！！，我去试试，谢谢谢谢！！</p>
]]></description><link>https://bbs.aw-ol.com/post/28059</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/28059</guid><dc:creator><![CDATA[lcsing0]]></dc:creator><pubDate>Wed, 21 Jan 2026 12:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to [V851s] YOLOv5 v7.0 转 Acuity 6.6.1 深度解析：从 ONNX 崩溃到依赖地狱，以及三条出路的分析 on Wed, 21 Jan 2026 12:35:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://bbs.aw-ol.com/uid/5070">@doniyor_khalilov99</a> 在 <a href="/post/28054">[V851s] YOLOv5 v7.0 转 Acuity 6.6.1 深度解析：从 ONNX 崩溃到依赖地狱，以及三条出路的分析</a> 中说：</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://bbs.aw-ol.com/uid/8419">@lcsing0</a> 你好，请问你是把 Allwinner SDK 下载并安装在哪个版本的 Ubuntu 上的 (<a href="https://releases.ubuntu.com/16.04/" target="_blank" rel="noopener noreferrer nofollow ugc">https://releases.ubuntu.com/16.04/</a>)？<br />
是 Ubuntu 16.04，还是通过这个链接里的 .ova 文件安装的 (<a href="https://netstorage.allwinnertech.com:5001/sharing/Wm9YiHMvf" target="_blank" rel="noopener noreferrer nofollow ugc">https://netstorage.allwinnertech.com:5001/sharing/Wm9YiHMvf</a>)？</p>
</blockquote>
<p dir="auto">我是物理系统ubuntu22.04版本，镜像官方有，目前这个主流都是ubuntu18.04和20.04版本的教学大部分都是使用VM虚拟机或者docker，至于16.04教程好像也支持，我没有使用过16.04版本，抱歉抱歉</p>
]]></description><link>https://bbs.aw-ol.com/post/28057</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/28057</guid><dc:creator><![CDATA[lcsing0]]></dc:creator><pubDate>Wed, 21 Jan 2026 12:35:21 GMT</pubDate></item><item><title><![CDATA[Reply to [V851s] YOLOv5 v7.0 转 Acuity 6.6.1 深度解析：从 ONNX 崩溃到依赖地狱，以及三条出路的分析 on Wed, 21 Jan 2026 11:19:37 GMT]]></title><description><![CDATA[<p dir="auto">Acuity-Toolkit-Binary-6.6.1 版本已经非常老了，建议更新下版本，社区目前有 Radxa 提供的 NPU 开发环境：<a href="https://docs.radxa.com/en/cubie/a5e/app-dev/npu-dev/cubie-acuity-sdk" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.radxa.com/en/cubie/a5e/app-dev/npu-dev/cubie-acuity-sdk</a></p>
]]></description><link>https://bbs.aw-ol.com/post/28053</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/28053</guid><dc:creator><![CDATA[awwwwa]]></dc:creator><pubDate>Wed, 21 Jan 2026 11:19:37 GMT</pubDate></item></channel></rss>