Instructions to use unity/inference-engine-blaze-face with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- unity-sentis
How to use unity/inference-engine-blaze-face 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
Upload RunBlazeFace.cs
Browse files- RunBlazeFace.cs +1 -0
RunBlazeFace.cs
CHANGED
|
@@ -334,6 +334,7 @@ public class RunBlazeFace : MonoBehaviour
|
|
| 334 |
|
| 335 |
void CleanUp()
|
| 336 |
{
|
|
|
|
| 337 |
ops?.Dispose();
|
| 338 |
allocator?.Dispose();
|
| 339 |
if (_webcam) Destroy(_webcam);
|
|
|
|
| 334 |
|
| 335 |
void CleanUp()
|
| 336 |
{
|
| 337 |
+
closing = true;
|
| 338 |
ops?.Dispose();
|
| 339 |
allocator?.Dispose();
|
| 340 |
if (_webcam) Destroy(_webcam);
|