Files
candle/candle-examples/examples/trocr
Laurent Mazare 42ce593ec6 Use the repo config for trocr rather than hardcoding it + small tweaks. (#1689)
* Use the repo config for trocr rather than hardcoding it + small tweaks.

* Add support for the printed models.

* Fail with an appropriate error message on missing position embeddings.
2024-02-10 13:15:03 +01:00
..
2023-11-12 09:46:19 +00:00

candle-trocr

TrOCR is a transformer OCR Model. In this example it is used to transcribe image text. See the associated model card for details on the model itself.

Running an example

cargo run --example trocr --release --  --which base --cpu --image candle-examples/examples/trocr/assets/trocr.png
<s> industry , Mr. Brown commented icily . " Let us have a</s>