Paul Bird
commited on
Commit
•
ed7f4da
1
Parent(s):
7130ecc
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,33 @@
|
|
1 |
---
|
2 |
-
license:
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: unity-sentis
|
4 |
+
pipeline_tag: object-detection
|
5 |
---
|
6 |
+
|
7 |
+
# *** WARNING: Not to be made live yet. Has memory leak in NMS Layer *** #
|
8 |
+
|
9 |
+
# YOLOv8n validated for Unity Sentis
|
10 |
+
|
11 |
+
This is a real-time multi-object recognition model confirmed to run in Unity 2023.
|
12 |
+
|
13 |
+
## How to Use
|
14 |
+
First get the package `com.unity.sentis` from the package manager.
|
15 |
+
You will also need the Unity UI package.
|
16 |
+
|
17 |
+
* Create a new scene in Unity 2023.
|
18 |
+
* Add the c# script to the Main Camera.
|
19 |
+
* Create a Raw Image in the scene and link it as the `displayImage`
|
20 |
+
* Put the yolov8n.sentis file in the Assets/StreamingAssets folder
|
21 |
+
* Drag the classes.txt on to the labelAssets field
|
22 |
+
* Put a video file in the Assets/StreamingAssets folder and set the name of videoName to the filename in the script
|
23 |
+
* Set the fields for the bounding box texture sprite and the font
|
24 |
+
|
25 |
+
|
26 |
+
## Preview
|
27 |
+
If working correctly you should see something like this:
|
28 |
+
|
29 |
+
![preview](preview.png)
|
30 |
+
|
31 |
+
|
32 |
+
## Unity Sentis
|
33 |
+
Unity Sentis is the inference engine that runs in Unity 3D. More information can be found at [here](https://unity.com/products/sentis)
|