Instructions to use unity/inference-engine-mobilenet-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- unity-sentis
How to use unity/inference-engine-mobilenet-v2 with unity-sentis:
string modelName = "[Your model name here].sentis"; Model model = ModelLoader.Load(Application.streamingAssetsPath + "/" + modelName); IWorker engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, model); // Please see provided C# file for more details
- Notebooks
- Google Colab
- Kaggle
metadata
license: mit
library_name: unity-sentis
pipeline_tag: image-classification
tags:
- unity-inference-engine
MobileNet V2 in Unity 6 with Inference Engine
This is the MobileNet V2 model running in Unity 6 with Inference Engine. This is a small image classification model.
How to Use
- Create a new scene in Unity 6;
- Install
com.unity.ai.inferencefrom the package manager; - Add the
RunMobileNet.csscript to the Main Camera; - Drag the
mobilenet_v2.onnxasset from themodelsfolder into theModel Assetfield; - Drag the
class_desc.txtasset from thedatafolder into theLabels Assetfield; - Drag an image, such as
Bee.jpgasset from theimagesfolder into theInput Imagefield;
Preview
Enter play mode. If working correctly the predicted class will be logged to the console.
Inference Engine
Inference Engine is a neural network inference library for Unity. Find out more here.