Skip to main content

Module model_manager

Module model_manager 

Source
Expand description

Model Manager

This module handles downloading and caching the ONNX model used for OCR. Models are downloaded from HuggingFace and stored in the user’s cache directory.

Structs§

ModelManager
Manages downloading and caching of OCR models

Constants§

CHARSET_FILENAME
Filename of the charset that belongs to the same revision.
MODEL_FILENAME
Filename of the ONNX model within the repository’s onnx/ directory.
MODEL_REPO
The Hugging Face repository holding the ONNX artifact.
MODEL_REVISION
The pinned revision.