
monai.Transchex
Medical imaging133 ops59.9K params
GOT-OCR2, an end-to-end OCR model that reads text, formulas, tables and more from images.
Documents and OCR · 133 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.dbnet_mobilenetv3:build_abinet_vision_language: build({}) GOT-OCR2 is an OCR model, one that reads text out of images, and it covers a wide range of tasks from plain document and scene text to tables, charts, mathematical formulas and sheet music. It was proposed in the paper "General OCR Theory: Towards OCR-2.0 via a Unified End-to-end Model". The paper describes GOT as an end-to-end model with 580M parameters, made of a high-compression encoder and a long-contexts decoder.
In the Transformers library the model outputs plain text only, and other packages can process that output further to render the desired format. A user can limit recognition to one region by giving the coordinates or the color of its bounding box. The model supports a 1024×1024 input resolution, and for images with unusual aspect ratios it can crop the image into patches, process them all at once and merge the results. Several pages can also be processed at once, with the output being one continuous text.
Key idea. The GOT paper proposes a single end-to-end model, made of a high-compression encoder and a long-contexts decoder, to handle many kinds of OCR tasks.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.