Giter Club home page Giter Club logo

unity-cntk's Introduction

unity-cntk

Version history
[3-12-2017] Updated text and demo for Unity 2017.3 beta 11 with cntk 2.3 (for both CPU and GPU). Included a training demo in Unity using the new CNTK training API's. WARNING: i'm still in the process of validating the .net training implementation compared to python, so until then: validate often
[14-5-2017] Initial commit for Unity 2017 beta 5 with cntk 2.0rc2 (for both CPU and GPU). Included a trained CNTK model file (done with python API's) and evaluation demo in Unity

Unity 2017.3 (.net 4.6 support!) with CNTK 2.3 demo (now featuring both training and test API's)

See thread microsoft/CNTK#960 for some history and see this link for more CNTK training examples in c#: https://github.com/Microsoft/CNTK/tree/master/Examples/TrainingCSharp/Common

Tested With/Requires

How to run this demo project

  1. Download unity and cntk libs from links above
  2. Copy the following DLL's to C:\Program Files[Your unity version]\Editor (eg. C:\Program Files\2017.3.0b11\Editor )

[Note. These assembly files are required for the demo project to run. For your project you might need other deserializers, Unity will alert when and which assemblies cannot be found. Copy the required dll's to the editor folder and the alert will disappear shortly.]

(see https://github.com/Microsoft/CNTK/wiki/CNTK-Library-Evaluation-on-Windows#using-the-cntk-library-managed-api and http://stackoverflow.com/questions/36527985/dllnotfoundexception-in-while-building-desktop-unity-application-using-artoolkit)

  • Cntk.Core-VERSION.dll (eg. Cntk.Core-2.3.dll)
  • Cntk.Math-VERSION.dll
  • Cntk.Core.Managed-VERSION.dll
  • Cntk.Core.CSBinding-VERSION.dll
  • Cntk.Composite-VERSION.dll
  • Cntk.PerformanceProfiler-VERSION.dll
  • Cntk.Deserializers.TextFormat-VERSION.dll
  • libiomp5md.dll
  • mkl_cntk_p.dll
  • cublas64_80.dll
  • cudart64_80.dll
  • cudnn64_5.dll
  • curand64_80.dll
  • cusparse64_80.dll
  • nvml.dll
  1. Clone project.

[Note. This demo project has been build for CNTK 2.3, and has the Cntk.Core.Managed-2.3.dll in the Assets\CNTK folder. If you wish to use another CNTK version please update this dll to that version accordingly. Restart Unity, as Unity does not unload the assembly.]

  1. Run test.unity or train.unity scene to boot up Unity
  2. Hit play to see results and checkout the .cs script to see how the API's work

For test result should look like test

For training result should look like

unity_2017-12-04_16-59-13

Create New Unity-CNTK Project

  1. Create new project and in File > Build settings > Player settings set scripting runtime to 4.6 (see image below), restart is required.

unity_net46setting

  1. Add the Cntk.Core.Managed-.dll to your Asset folder

[Note. For the managed dll to work, the native dll's need to be present for unity (see step 2 from "how to run this demo project")].

unity-cntk's People

Contributors

aiunderstand avatar

Watchers

James Cloos avatar  avatar

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.