Error While Loading the models locally #32
Replies: 12 comments 4 replies
-
Hi @saisoulpage 👋, First you load the onnx versions of different models:
And you cannot simply change the vocab this would require your own custom trained model if you only want that the model predicts A,B or C :)
Custom model training ref.: https://mindee.github.io/doctr/using_doctr/custom_models_training.html |
Beta Was this translation helpful? Give feedback.
-
i need to load pretrained models that you are using manually that i need to keep in a models directory. could you please help me on it |
Beta Was this translation helpful? Give feedback.
-
How to fix ? wget https://github.com/felixdittrich92/OnnxTR/releases/download/v0.0.1/parseq-00b40714.onnx
wget https://github.com/felixdittrich92/OnnxTR/releases/download/v0.0.1/linknet_resnet18-e0e0b9dc.onnx
:) |
Beta Was this translation helpful? Give feedback.
-
BTW.: |
Beta Was this translation helpful? Give feedback.
-
https://github.com/felixdittrich92/OnnxTR/releases/download/v0.0.1/rep_fast_base-1b89ebf9.onnx How load this models locally
|
Beta Was this translation helpful? Give feedback.
-
On top of your script :) |
Beta Was this translation helpful? Give feedback.
-
Sorted it |
Beta Was this translation helpful? Give feedback.
-
Looking for this because paseq and linknet_resnet18 not working for above models |
Beta Was this translation helpful? Give feedback.
-
If you want to use the crnn and fast base onnx (from your initial code snippet) models you need:
And remove the vocab="ABC" :) |
Beta Was this translation helpful? Give feedback.
-
How many different types of languages will this models support example English. etc one more question, i am still getting below error
|
Beta Was this translation helpful? Give feedback.
-
Could you share a full code snippet which raises the error ? |
Beta Was this translation helpful? Give feedback.
-
Sorted the issue thanks for your help |
Beta Was this translation helpful? Give feedback.
-
Bug description
hi @felixdittrich92 i am getting error while loading the model, i have attached the code below please check it once.
Code snippet to reproduce the bug
Error traceback
Environment
i am using colab with default python version
Beta Was this translation helpful? Give feedback.
All reactions