Skip to content

How to fix error from converted onnx model to rten when using ocrs? #88

Answered by robertknight
kmgbarroga asked this question in Q&A
Discussion options

You must be logged in to vote

This model has a different API than the ones that Ocrs uses. By that I mean that the inputs it expects and the outputs it produces are different than Ocrs's own models. It might be possible to adapt Ocrs to use it, but it would require some code changes.

Do you have a description of what inputs and outputs that model uses? Using Netron, I see the expected input shape is:

[batch_size,32,128,3]

Which I'm guessing is (batch, height, width, rgb_channel). The spatial shape (32, 128) looks like this model expects words rather than lines as input. The output shape is:

[batch_size,LogSoftmaxoutput_dim_1,79]

Which I guess is (batch, x_position, letter_class).

The Ocrs model inputs and outputs ar…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kmgbarroga
Comment options

@robertknight
Comment options

@kmgbarroga
Comment options

Answer selected by kmgbarroga
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