Skip to content

Using docTR predictor with a trained recognition model #940

Answered by felixdittrich92
Atomme1 asked this question in Q&A
Discussion options

You must be logged in to vote

@Atomme1 that's possible with the next release (currently on dev) like:

model = crnn_vgg16_bn(pretrained=False, vocab=VOCABS["french"])
model.load_state_dict('path, mapping='cpu')
predictor = ocr_predictor(reco_arch=model, pretrained=True)

@dhea1323 yes it is but i think the results will be not really good
PS: sry wrote from mobile phone will answer this later a bit more in detail 😅

Replies: 4 comments 3 replies

Comment options

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

Comment options

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

Comment options

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

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