react-native-transformers-example
react-native-transformers-example copied to clipboard
Where should I put my onnx files?
I found no referece where should I put my onnx file in this project, i built the app to IOS but can't teste any model because there is no onnx file in the project.. @hans00
They are put on huggingface. If you use custom model, see here
They are put on huggingface. If you use custom model, see here
thanks for your reply, but i don't understand a thing, is this project getting the model online? To be clearer, I built the app, don't I need to set any onnx in any folder? I built the app and tried to make it works but no model was loaded and nothing was working in the app
thanks for your reply, but i don't understand a thing, is this project getting the model online?
transformers.js will download model from huggingface or load from local path.
If you need bundle model into app, you can try:
- Store model as assets
- Resolve assets absolute path or copy assets into data path
- load model:
pipeline('task-name', '/path/to/model/dir')