How to fix error from converted onnx model to rten when using ocrs? #88
-
Hi again.
This was the command I executed: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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:
Which I'm guessing is
Which I guess is The Ocrs model inputs and outputs are similar, but not the same. The input is |
Beta Was this translation helpful? Give feedback.
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:
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:Which I guess is
(batch, x_position, letter_class)
.The Ocrs model inputs and outputs ar…