-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an model source dropdown option for using Application.persistentDataPath #1077
Comments
How do you place them? In other words, how do you get those models and save under Lines 92 to 93 in d495193
|
We currently use OpenCV but I want to move over to MediaPipe, we have self trained / custom models, currently in .onnx format that you can upload to a server, we then use: So I assume your example will work, I just find it difficult to debug/trace your code with all the overides |
For now, That being said, it is not ideal for library users to have to inherit the class and implements abstract methods, so I will make the |
LocalResourceManager does not work in Android builds, only in Editor, I tried to re-work it but get errors from the graph as soon as it runs, I'll post those if needed, the .bytes file loads fine, it seems, till the graph needs to read, I just don't understand why it will work in Editor but not runtime. Can it not just be as simple as doing: |
Feature Description
Currently the only way to load model files via the ResourceManager is
The latter does not work outside of Editor and I have a requirement to dynamically swap or switch model files at runtime, we place all the model files in the Application.persistentDataPath folder and and would like to load them from there. I can't change StreamingAssets content post build and Asset Bunbles is not an option as these devices don't have public internet access.
If you can give me an example of how, similar to Streaming Assets, I can load the files from Application.persistentDataPath as opposed to Application.streamingAssetsPath that would be appriciated.
Current Behaviour/State
I can't get the hand tracking model files to load from Application.streamingAssetsPath in a Android device
Even if I can, I need to be able to dynamically update, during runtime, the model files or .byte s files
Additional Context
No response
The text was updated successfully, but these errors were encountered: