Skip to content

Should I use Paddle.io.DataLoader to prepare data for PaddleOCR #7009

Answered by andyjiang1116
bdeng3 asked this question in Q&A
Discussion options

You must be logged in to vote

Paddle.io.DataLoader doesn't work.
Since the input batch size must be 1 if det is used, so if you want to speed the inference, you can use use_mp https://github.com/PaddlePaddle/PaddleOCR/blob/dygraph/tools/infer/predict_system.py#L207
, if you only use the rec, you can set rec_batch_num to a big number in here
https://github.com/PaddlePaddle/PaddleOCR/blob/dygraph/tools/infer/utility.py#L86

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@bdeng3
Comment options

@andyjiang1116
Comment options

@bdeng3
Comment options

@bdeng3
Comment options

@andyjiang1116
Comment options

Answer selected by bdeng3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants