Downloads · 30 days
9
15% of all-time downloads
inYourOwnBrowser/trocr-base-handwritten-ONNX
trocr-base-handwritten-ONNX is a image-text-to-text model from inYourOwnBrowser. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers.js. The card lists the license as mit.
This is a mirror of onnx-community/trocr-base-handwritten-ONNX, which is itself an ONNX conversion of microsoft/trocr-base-handwritten for use with Transformers.js.
Downloads · 30 days
9
15% of all-time downloads
All-time downloads
61
Public
Repo size
2.3 GB
Likes
0
Public
Click a slice to open those files.
.onnx2.3 GB · 100%
From the Hugging Face model README
This is a mirror of onnx-community/trocr-base-handwritten-ONNX, which is itself an ONNX conversion of microsoft/trocr-base-handwritten for use with Transformers.js.
Hosted here as a pinned, self-controlled dependency for a browser-based, offline-first PDF tool. Pinning the app to a specific commit on this repo means the handwriting recognition model can't change out from under the app without an explicit update.
Only the files needed are included (not the full set of quantization variants from the source repo):
onnx/encoder_model.onnx, onnx/encoder_model_fp16.onnxonnx/decoder_model_merged.onnx, onnx/decoder_model_merged_fp16.onnximport { pipeline } from '@huggingface/transformers';
const captioner = await pipeline(
'image-to-text',
'inYourOwnBrowser/trocr-base-handwritten-ONNX',
{ dtype: 'fp32' } // or 'fp16'
);
const output = await captioner(imageDataUrl);
No changes were made to the model weights — this repo only re-hosts a subset of the original ONNX files.