Skip to content

How to increase the speed of processing? #1823

Answered by felixdittrich92
VMM-MMV asked this question in Q&A
Discussion options

You must be logged in to vote

latency benchmark:

https://github.com/felixdittrich92/OnnxTR#benchmarks

I would suggest to try the standard installation onnxtr[cpu] first instead of onnxtr[openvino] because what i saw openvino differs heavily from CPU to CPU

with the following:

from onnxtr.models import ocr_predictor

model = ocr_predictor(
    det_arch='db_mobilenet_v3_large',  # detection architecture
    reco_arch='crnn_mobilenet_v3_small',  # recognition architecture
    det_bs=2, # detection batch size adjust to your hardware
    reco_bs=512, # recognition batch size adjust to your hardware
    )

You will get the fastest combination (maybe not the highest acc) ^^

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@felixdittrich92
Comment options

Answer selected by VMM-MMV
Comment options

You must be logged in to vote
1 reply
@felixdittrich92
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants