CAPTCHA OCR fine-tuned models
This repository contains model artifacts and selected checkpoints from CAPTCHA OCR fine-tuning experiments based on PP-OCRv5 recognition models. It includes both mobile-sized and larger recognition-model artifacts; each subdirectory identifies the framework and experiment family.
Contents
exports/: exported inference files for PaddleOCR inference.models/: base and diagnostic PaddlePaddle weight files, plus selected weights.runs/: historical PaddlePaddle training checkpoints from the local fine-tuning runs.real-data-checkpoints/: selected checkpoint artifacts from the real-data experiment.experiments/mps-final/: sanitized PyTorch model weights from the selected MPS experiments.
The files under models/selected-* and experiments/mps-final/ are weights-only artifacts. They may require the matching architecture, character list, preprocessing, and inference code; they are not all standalone pipelines. Optimizer state, random state, configuration, local paths, logs, server metadata, IP addresses, credentials, and unrelated environment information were intentionally excluded.
Best observed evaluation result
The strongest recorded run used a synthetic warm start followed by reviewed real-data fine-tuning. On the local held-out evaluation split, the best checkpoint achieved:
| Evaluation | Baseline | Fine-tuned | Change |
|---|---|---|---|
| Full split exact-string match (22 samples) | 40.9% | 81.8% | +40.9 percentage points |
| Full split CER | 19.0% | 6.0% | 68.2% relative reduction |
| Target subset exact-string match (22 samples) | 36.4% | 68.2% | +31.8 percentage points |
| Target subset CER | 44.6% | 28.4% | 36.4% relative reduction |
Exact-string match requires the complete predicted string to match the label. CER is character error rate; lower is better. These are internal evaluation results on small fixed splits, not a claim of general performance on unseen CAPTCHA generators.
Additional experiments improved full-split exact match from 0.0β13.6% to 77.3%, and reduced CER from 49.1β69.8% to 9.5β11.2%. The synthetic-only run improved from 0.8% to 55.5% exact match and reduced CER from 79.3% to 12.6% on its 128-sample evaluation split.
Training and evaluation details
- Recognition objective: CTC sequence recognition.
- One reviewed-data recipe used batch size 8, learning rate 3e-5, up to 20 epochs, early stopping patience 6, and frozen batch-normalization statistics.
- The final reviewed-data comparison used 247 training samples, 22 validation samples, and 59 test samples in the frozen export manifest. A separate synthetic auxiliary split contained 2,400 training samples and 128 validation samples.
- The input preprocessing for the exported recognition model uses resized/padded images of 48Γ320; use the files under
exports/when a complete PaddleOCR inference export is needed.
The reported numbers come from the experiment records included in the local training history, while only sanitized model artifacts and public-safe documentation are published here.
Intended use
These artifacts are intended for research and evaluation of OCR on CAPTCHA-like images. Before using a file, verify its framework and expected input preprocessing. The PaddleOCR export under exports/ is the most direct starting point for PaddleOCR inference.
Limitations
Performance depends on the CAPTCHA generator, character set, image preprocessing, and train/evaluation split. Results should not be assumed to generalize to unseen CAPTCHA formats. This repository does not provide a security guarantee or a CAPTCHA-solving service.
Data and privacy
The associated dataset repository contains image and label files used by the experiments. Do not add credentials, server addresses, private paths, logs, configuration dumps, or personal data to this repository.
Reproducibility notes
The repository preserves historical model checkpoints and selected final weights, but not every original training log or checkpoint metadata file. To reproduce an experiment, use the matching model family, character list, preprocessing, data split, and training code; do not infer these from a weights-only file alone.
License
The license of the upstream PP-OCRv5 components and any third-party data remains applicable. Check the upstream project and the source data terms before redistribution or commercial use.