mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 02:16:37 +00:00
Mention TrOCR in the readmes. (#1691)
This commit is contained in:
@ -5,10 +5,16 @@ transcribe image text. See the associated [model
|
||||
card](https://huggingface.co/microsoft/trocr-base-printed) for details on
|
||||
the model itself.
|
||||
|
||||
Supported models include:
|
||||
- `--which base`: small handwritten OCR model.
|
||||
- `--which large`: large handwritten OCR model.
|
||||
- `--which base-printed`: small printed OCR model.
|
||||
- `--which large-printed`: large printed OCR model.
|
||||
|
||||
## Running an example
|
||||
|
||||
```bash
|
||||
cargo run --example trocr --release -- --which base --cpu --image candle-examples/examples/trocr/assets/trocr.png
|
||||
cargo run --example trocr --release -- --image candle-examples/examples/trocr/assets/trocr.png
|
||||
```
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user