Getting Started
Quick Primer
Last updated
Was this helpful?
Quick Primer
Last updated
Was this helpful?
To begin, by adding the following lines to your Unity project's Packages > manifest.json
file:
Once NatML has been imported, you can run ML models right in the Editor. For this example, we will classify an image using the popular architecture:
Once you have an access key, you can add it to your Unity project in Project Settings > NatML
:
Next, import the image below (download it into your Unity project):
Make sure that in the advanced settings, you enable the Read/Write Enabled
setting:
Now, we can write a small script to classify the image:
Now, let us add our script to the scene and assign the inspector variables:
Now, we run the script to confirm that our model predicted the image correctly!
First, we'll import the MobileNet predictor into our project by following :
The recommended way to make predictions with ML models is using . These are lightweight classes that 'know how' to format the model's input and output features.
We will fetch our models from , . To do so, we need to retrieve our access key:
Classifier
script we just created.