Changed GetCurrentModel to return the model instead of the tuple

This commit is contained in:
CoudronJerome
2023-03-29 19:17:42 +02:00
parent be8885a508
commit a44532b94a
3 changed files with 9 additions and 7 deletions

View File

@@ -210,7 +210,7 @@ namespace Mediapipe.Unity.Tutorial
// check if model exists at path
//var model = ModelLoader.Load(Resources.Load<NNModel>("Models/Fingerspelling/model_A-L"));
worker = modelList.GetCurrentModel().model.CreateWorker();
worker = modelList.GetCurrentModel().CreateWorker();
StartCoroutine(SignRecognitionCoroutine());
StartCoroutine(MediapipeCoroutine());
@@ -223,7 +223,7 @@ namespace Mediapipe.Unity.Tutorial
worker?.Dispose();
// Add a new worker for the new model
worker = modelList.GetCurrentModel().model.CreateWorker();
worker = modelList.GetCurrentModel().CreateWorker();
}
/// <summary>