Git Product home page Git Product logo

winmlexperiments's Introduction

WinMLExperiments

Various projects leveraging Windows Machine Learning (WinML) for AI Deep Learning inference running via UWP on the HoloLens. The demo is mainly used in the conference sessions by Rene Schulte presented at events like //build, Unite Berlin AutoTech Summit and more.

HoloVision18

This is a Unity Project using WinML and SqueezeNet trained on a modified ImageNet dataset to classify objects the user is seeing in front. Spatial Mapping is used to measure the distance and Spatial Sound with Text-To-Speech to tell the user the most dominant object in the space.

Make sure to have the HoloLens update RS5 / Build 177xx / 1809 installed:
https://forums.hololens.com/discussion/10696/announcing-the-hololens-rs5-preview

On your development machine you also need at least Unity 2018.2 and Visual Studio 2017 with the Windows SDK for RS5 / Build 177xx / 1809 installed.

More details and some of the session recording can be found here: https://kodierer.blogspot.com/2018/06/content-for-unite-berlin-autotech.html

http://kodierer.blogspot.de/2018/05/content-for-microsoft-build-2018.html

https://kodierer.blogspot.com/2018/11/the-sky-is-not-limit-content-for.html

https://kodierer.blogspot.com/2018/09/content-for-digility-session-advanced.html

HoloVision20

This is the HoloLens 2 version of the project.

winmlexperiments's People

Contributors

reneschulte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

winmlexperiments's Issues

Unity XR Plugin management - missing depth info

Win 10 18362.1082
Unity 2019.4.9f1
HL2 10.0.19041.1375

This might be a HL2 or Unity issue rather than an issue with your app.
When I run the app with the legacy "XR settings" - "VR supported" settings enabled in the player, the app provides me with the correct depth information and works like described.
If I however use the new Unity XR Plugin Management system in the Project Settings, the reported depth is always 0.

Cannot build the unity project

Hi,
When I tried to build the project in unity, it showed like that.

issue
issue2
I just open your project in unity 2018.1.31f and build it for Universal Windows Platform.
Could you please help me to check if there is anything wrong with my building or is there anything else I need to install in unity?

Thank you very much and hope you have a good day.

Replace squeezenet DNN with pose tracking DNN

The example is great and works without problems out of the box, thanks a lot!

I have a question with regards to replacing the small squeezenet with a larger model such as posenet for bodytracking.
I saw that you load the model as a TextAsset, which seems to lead to memory issues for a larger model.
Can this be loaded eg. as a StreamingAsset and do you know how that can be implemented?

App crashing on deploy

The app crashes when I try to deploy it.

The error occurs in app.cs in line 19
m_AppCallbacks = new AppCallbacks();

The output messages are

An unhandled exception of type 'System.IO.FileLoadException' occurred in HoloVision18.exe
The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

Die Aktivierung der Windows Store-App "HoloVision18_awaf3f2xac5x2!App" ist mit Fehler "Die App wurde nicht gestartet" fehlgeschlagen.
Das Programm "[5624] HoloVision18.exe" wurde mit Code 0 (0x0) beendet.

I have no idea what other process could use the file (what file ever it is). Even a freshly restarted HoloLens won't run the app.

Loading the model from storage file

Have an issue loading the onnx model from storage file. I can confirm that the file was stored into 'model.bytes' and loaded using LoadModelFromStorageFileAsync,
after loading, the _model.Description.InputFeatures is null.
Any ideas?

Error at Startup

Hi,
after I deployed the project to my hololens emulator, the emulator showed a green cross and a text saying: "Error Init: Object Reference not set to an instance of an object".

I used the same unity version as you and vs 2019. I deployed on x64 release version

Manipulating input image

Hey Rene,

great work, the example scene and ML model works fine! I have not really an issue but more of a question: I'd like to grab the camera image and manipulate it (using openCV), before using it with an ONNX model. However I'm badly stuck at trying to set up the input for the model coming from an Unity Texture2D (getting to the Windows specific Videoframe). Did you by chance try something like that or have some insights how to do that?

Best regards
Stoffel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.