HoloLens的自定义视觉 [英] Custom Vision on HoloLens

查看:113
本文介绍了HoloLens的自定义视觉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用自定义视觉( https://www.customvision.ai )来训练模型用于物体识别.经过10次迭代训练后,它突然停止加载.我总是将其导出为onnx并将其加载到HoloLens中(使用本教程: https://mtaulty.com/2018/03/29/third-experiment-with-image-classification-on-windows- ml来自hololens-unity中的uwp/).而且它工作了相当长的一段时间(尽管结果并不完美),但是在我继续训练模型以发现更好的结果之后,它就停止了工作.

I'm using custom Vision ( https://www.customvision.ai ) to train a model for object recognition. After 10 Iterations of training it suddenly stopped loading. I always export it as onnx and load it on the HoloLens (with this tutorial: https://mtaulty.com/2018/03/29/third-experiment-with-image-classification-on-windows-ml-from-uwp-on-hololens-in-unity/ ). And it worked for quite some time (though the results weren't perfect), but after I continued to train the model to find the things better it simply stopped working.

我的脚本与教程中的脚本非常相似,只是带有我的标签和一些不同的名称. MainScript.cs https://pastebin.com/hxLrjXqv -我的detect.cs(例如本教程) https://pastebin.com/sP4PWNV6

My Scripts are pretty much like the ones in the Tutorial, just with my Tags and some different names. MainScript.cs https://pastebin.com/hxLrjXqv - my detect.cs (like the daschund.cs in the tutorial) https://pastebin.com/sP4PWNV6

因此,我在Custom Vision上删除了我的项目,并再次从头开始训练我的模型. 2个具有Multiclass的标签(每张图像一个标签)仅具有40张图片.我只想知道图片中是否有手指.在HoloLens上进行部署时,它不会超出MainScript中的限制

So I deleted my project on Custom Vision and started trained my model from the ground up again. Only have like 40 pictures for 2 Tags with Multiclass (Single tag per image). I only want to know if there is a pointing finger in the picture or not. When deploying on the HoloLens it doesn't get over the line in MainScript

LearningModelEvaluationResultPreview evalResult = await learningModel.EvaluateAsync(binding, string.Empty);

我不知道出了什么问题.如果有人对如何解决它有想法,或者对如何学习如何在HoloLens上运行对象识别模型有不同的了解,我将很高兴.

I don't know what's the problem. If anyone has an idea how to fix it or a different source for how to learn how to run an Object Recognition Model on the HoloLens I would be happy.

预先感谢

推荐答案

自定义视觉服务已更新,可以下载ONNX v1.2模型.解决了我的问题.

Custom Vision service updated to allow download of ONNX v1.2 models. Solved my issue.

这篇关于HoloLens的自定义视觉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆