Highlights
Added
- New
cct-xs-v2-global-modelandcct-s-v2-global-modelwith plate region recognition support for 65+ countries. - Optional region-aware training, validation, and inference flow, including
plate_regiondataset support. - New region evaluation metrics, including
val_region_macro_f1, plus per-region evaluation in validation. - New CCT v2 model configs, parameterized plate configs, and focal loss support for region classification.
- Inference now returns
PlatePrediction, exposing region outputs when available. - Export pipeline improvements for multi-output models, plus support for selecting the ONNX opset version.
- Expanded dataset validation and annotation checks, including region validation and warnings on unexpected columns.
Changed
- V2 pre-trained models were trained on roughly 3x more data than the v1 generation.
- V2 training now includes empty plates built from backgrounds, noise, textures, and other padded-plate negatives.
- Region recognition now includes an
Unknownclass trained mainly with synthetic data. - Updated the new CCT v2 models to use
siluinstead ofgeluto avoid export issues with some library versions. - Added the corrected
attention_layoutbehavior so split projection dimensions are distributed per head instead of reusing the fullprojection_dim. - The shipped v2
xsandspre-trained models both exceed0.99val_region_macro_f1on a held-out validation split with more than114_000samples. - Transformer blocks and training defaults are more configurable, including projection validation, loss weighting, and milder augmentations.
- Inference now removes the pad character by default from decoded output.
- TFLite export now uses LiteRT via
ai-edge-litertfollowing TensorFlow deprecation changes.
Fixed
- Fixed region recognition mismatches during validation.
- Fixed
EarlyStoppingmetric selection when training single-head models. - Fixed learning-rate decay step calculation to account for warmup steps.
Full Changelog: v1.0.2...v1.1.0