stevafernandes/Fine-Tuning-HunyuanOCR
0
MuseumSCAT Label Transcription
HunyuanOCR-1.5 fine-tuned to transcribe collection dates (verbatimDate) and localities (verbatimLocality) from Natural History Museum of Denmark specimen label images, with per-field confidence scores.
Deployment
- Create a Gradio Space and upload the contents of this directory.
- Add the fine-tuned LoRA adapter either by:
- copying the adapter directory (from
finetune.py --output-dir) into the Space asadapter/, or - setting the
ADAPTER_REPOSpace variable to a Hugging Face model repo containing the adapter. - Without an adapter, the app runs the base
tencent/HunyuanOCRmodel.
GPU hardware (or ZeroGPU) is recommended; CPU inference works but takes minutes per image.
