File size: 1,403 Bytes
67c8fc8 03df2f3 d6e3259 67c8fc8 60ce7aa 6722300 60ce7aa 91d6d34 60ce7aa 6d0e48c 60ce7aa 1faaec2 60ce7aa f2cd30c 891c509 60ce7aa 6722300 7626b80 501b830 7626b80 a9c7001 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
---
library_name: unity-sentis
pipeline_tag: object-detection
---
## YOLO Tiny v7 in Unity Sentis Format
[YOLO v7](https://docs.ultralytics.com/models/yolov7/) is a real-time multi-object recognition model confirmed to run in Unity 2023.
## How to Use
First get the package `com.unity.sentis` from the package manager.
You will also need the Unity UI package.
* Create a new scene in Unity 2023.
* Install `com.unity.sentis` version `1.3.0-pre.3` from the package manager
* Add the c# script to the Main Camera.
* Create a Raw Image in the scene and link it as the `displayImage`
* Put the yolov7-tiny.sentis file in the Assets/StreamingAssets folder
* Put a video file in the Assets/StreamingAssets folder and set the name of videoName to the filename in the script
* Drag the classes.txt on to the labelAssets field
* Set the fields for the bounding box texture sprite and the font
## Preview
If working correctly you should see something like this:
![preview](preview.png)
## Information
This version has additional layers which select the most likely bounding boxes. For a version without these additional layers take a look at the [YOLOv8n model](https://huggingface.co/unity/sentis-YOLOv8n).
## Unity Sentis
Unity Sentis is the inference engine that runs in Unity 3D. More information can be found at [here](https://unity.com/products/sentis)
### License
License of YOLO models is GPLv3 |