https://github.com/cj-mills/unity-barracuda-inference-base
This Unity package provides a foundation for performing inference with the Barracuda inference library. It includes a flexible base class to extend with task-specific packages.
https://github.com/cj-mills/unity-barracuda-inference-base
barracuda inference unity
Last synced: 5 days ago
JSON representation
This Unity package provides a foundation for performing inference with the Barracuda inference library. It includes a flexible base class to extend with task-specific packages.
- Host: GitHub
- URL: https://github.com/cj-mills/unity-barracuda-inference-base
- Owner: cj-mills
- Created: 2023-03-27T19:10:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T20:43:08.000Z (over 2 years ago)
- Last Synced: 2024-11-13T05:35:13.658Z (11 months ago)
- Topics: barracuda, inference, unity
- Language: C#
- Homepage: https://github.com/cj-mills/unity-barracuda-inference-base
- Size: 63.5 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Barracuda Inference Base
Barracuda Inference Base is a custom Unity package that provides a foundation for performing inference with the [Barracuda inference library](https://docs.unity3d.com/Packages/com.unity.barracuda@3.0/manual/index.html). It includes a flexible base class to extend with task-specific packages.
## Features
- Perform inference using the Unity Barracuda library
- Extensible `BarracudaModelRunner` base class for custom inference tasks
- Support for different compute backends and channel orders## Code Walkthrough
* [Code Walkthrough: Unity Barracuda Inference Base Package](https://github.com/cj-mills/unity-barracuda-inference-base)
## Extensions
| GitHub Repository | Description |
| ------------------------------------------------------------ | ---------------------------------------------------------- |
| [unity-barracuda-inference-image-classification](https://github.com/cj-mills/unity-barracuda-inference-image-classification) | Perform image classification using computer vision models. |
| [unity-barracuda-inference-yolox](https://github.com/cj-mills/unity-barracuda-inference-yolox) | Perform object detection using YOLOX models. |
| [unity-barracuda-inference-posenet](https://github.com/cj-mills/unity-barracuda-inference-posenet) | Perform 2D human pose estimation using PoseNet models. |## Demo Projects
| GitHub Repository | Description |
| ------------------------------------------------------------ | ---------------------------------------------------------- |
| [barracuda-image-classification-demo](https://github.com/cj-mills/barracuda-image-classification-demo) | Perform image classification using computer vision models. |
| [barracuda-inference-yolox-demo](https://github.com/cj-mills/barracuda-inference-yolox-demo) | Perform object detection using YOLOX models. |
| [barracuda-inference-posenet-demo](https://github.com/cj-mills/barracuda-inference-posenet-demo) | Perform 2D human pose estimation using PoseNet models. |## Getting Started
### Prerequisites
- Unity game engine
### Installation
You can install the Barracuda Inference Base package using the Unity Package Manager:
1. Open your Unity project.
2. Go to Window > Package Manager.
3. Click the "+" button in the top left corner, and choose "Add package from git URL..."
4. Enter the GitHub repository URL: `https://github.com/cj-mills/unity-barracuda-model-runner.git`
5. Click "Add". The package will be added to your project.For Unity versions older than 2021.1, add the Git URL to the `manifest.json` file in your project's `Packages` folder as a dependency:
```json
{
"dependencies": {
"com.cj-mills.barracuda-model-runner": "https://github.com/cj-mills/unity-barracuda-model-runner.git",
// other dependencies...
}
}
```## License
This project is licensed under the MIT License. See the [LICENSE](Documentation~/LICENSE) file for details.