简体   繁体   English

使用 customvision.ai/.NET 5 在 Raspberry PI 上进行对象检测

[英]Object detection on Raspberry PI using customvision.ai/.NET 5

We have written a x-plat worker service using .NET 5 that is running on a Raspberry PI 4 (Raspberry Pi OS).我们使用 .NET 5 编写了一个 x-plat 工作服务,该服务在 Raspberry PI 4(Raspberry Pi OS)上运行。 We have trained a custom vision object detection model on customvision.ai, exported it to ONNX and it all works well on Windows.我们已经在 customvision.ai 上训练了一个自定义视觉对象检测模型,将其导出到 ONNX,并且在 Windows 上运行良好。

We are now struggling to get it running on the Pi.我们现在正在努力让它在 Pi 上运行。 The ML.NET bits does not seem to work on the Pi. ML.NET 位似乎在 Pi 上不起作用。 We're getting (with target runtime "linux-arm"):我们得到(使用目标运行时“linux-arm”):

Microsoft.ML currently supports 'x64' and 'x86' processor architectures. Microsoft.ML 当前支持“x64”和“x86”处理器架构。 Please ensure your application is targeting 'x64' or 'x86'请确保您的应用程序针对“x64”或“x86”

We've searched hi and low for any working examples.我们已经搜索了 hi 和 low 的任何工作示例。 We've also tried to export to Tensorflow format and explore Tensorflow.NET without any success.我们还尝试导出为 Tensorflow 格式并探索 Tensorflow.NET,但没有成功。

Can anyone point to an example that is consuming a customvision.ai generated model in .NET Core/5 on a Raspberry PI?谁能指出一个在 Raspberry PI 上使用 .NET Core/5 中的 customvision.ai 生成模型的示例? We are extending an existing prototype and would like to avoid rewriting it all in Python/C++ or create out of process calls.我们正在扩展现有的原型,并希望避免用 Python/C++ 重写它或创建进程外调用。

Versions: ML.NET 1.6, Microsoft.ML.OnnxRuntime 1.8.1版本:ML.NET 1.6、Microsoft.ML.OnnxRuntime 1.8.1

Many thanks,非常感谢,

Mansos曼索斯

您是否正在运行 Uno Platform 应用程序以从 Pi4 中的相机模块(或 USB 网络摄像头)捕获图片并运行 ML.Net?

Just incase someone else lands here...以防万一其他人降落在这里......

The release ML.Net NuGets (mid Dec 2021) now have support for linux-aarch64, linux-arm, linux-arm64, Windows-x64 etc. ML.Net NuGets 版本(2021 年 12 月中旬)现在支持 linux-aarch64、linux-arm、linux-arm64、Windows-x64 等。

If you're still interested I have have a couple of blog posts about my "learning journey" getting a pretrained ONNX model working on RPI4B + Bullseye and ASUS PE100A + Ubuntu如果您仍然感兴趣,我有几篇关于我的“学习之旅”的博客文章,其中包含在 RPI4B + Bullseye 和 ASUS PE100A + Ubuntu 上运行的预训练 ONNX 模型

@KiwiBryn @KiwiBryn

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM