Sibtain Raza
Sibtain Raza
I have the same problem.
I guess the problem is ctc_decoder.When i made the language model from native client provided by original deepspeech implementation, the results were impressive but the inference speed was very low....
Why is the language model being quantized in script/build_lm.py? Is it a trade of between performance and error rate. How can we use trie and lm.binary file without quantizing?
But i am asking for labeled data format to finetune the model. Can i label each word with labels like COMPANY_NAME,DATE,OTHER etc? or we need to label according to {S,B,I,E,O}...
So one of the element of bounding box is greater than 1024.
@wolfshow which ocr did you use and how did you label the data?
its output is in the same order as your passed input tokens. You can easily map your bounding boxes to the corresponding prediction tokens as they are separated by new...
Closing the issue, since i have found solution to integrate this model.
This model simply extends bertPreTrainedModel class 1) BertConfig.from_pretrained('bert-base-multilingual-cased',num_labels=len(labels)) 2) --pre_trained_model_path= 'bert-base-multilingual-cased' 3) Initilize remaining embedding layers with kaiming-init 4) For faster generalization initialize remaining layers with released pre trained versions....
check in your train_box.txt and dev_box.txt if any bounding box ( x0,y0,x1,y1)has a value greater than 1000. This is the common issue with this error.