Skip to content
Discussion options

You must be logged in to vote

The output isn't moved and scaled by the model. The input tensor has the wrong memory layout: the image went in as HWC (interleaved RGB, the way OpenCV/PIL return it) without being transposed to the NCHW layout the model expects.

When HWC bytes are read as CHW, each of the three "channels" contains one third of the image rows, stretched 3× vertically and 3× horizontally. Your screenshots match that exactly. Your text is in the bottom third of the image, so it ends up in the third plane at y' = 3·y − 2·1088:

text line | y in input | predicted y' | y in your output -- | -- | -- | -- name | ~873 | 443 | ~437 subtitle | ~908 | 548 | ~550 main line | ~945 | 659 | ~660

Horizontally, the middle …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Epigeos-com
Comment options

Answer selected by Epigeos-com
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