Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
viptr_tiny-1cb2515e.pt | 2025-06-19 | 13.2 MB | |
vip_tiny-033ed51c.pt | 2025-04-12 | 13.2 MB | |
vip_base-f6ea2ff5.pt | 2025-04-12 | 81.4 MB | |
README.md | 2025-01-30 | 7.1 kB | |
v0.11.0 source code.tar.gz | 2025-01-30 | 3.6 MB | |
v0.11.0 source code.zip | 2025-01-30 | 3.9 MB | |
Totals: 6 Items | 115.2 MB | 0 |
Note: docTR 0.11.0 requires python >= 3.10 Note: docTR 0.11.0 requires either TensorFlow >= 2.15.0 or PyTorch >= 2.0.0
What's changed
New features
- Added
torch.compile
support (PyTorch backend) - Improved model training logging
- Created a small labeling tool designed for docTR (early stage) --> doctr-labeler
Compile your model
Compiling your PyTorch models with torch.compile
optimizes the model by converting it to a graph representation and applying backends that can improve performance.
This process can make inference faster and reduce memory overhead during execution.
Further information can be found in the PyTorch documentation
:::python
import torch
from doctr.models import (
ocr_predictor,
vitstr_small,
fast_base,
mobilenet_v3_small_crop_orientation,
mobilenet_v3_small_page_orientation,
crop_orientation_predictor,
page_orientation_predictor
)
# Compile the models
detection_model = torch.compile(
fast_base(pretrained=True).eval()
)
recognition_model = torch.compile(
vitstr_small(pretrained=True).eval()
)
crop_orientation_model = torch.compile(
mobilenet_v3_small_crop_orientation(pretrained=True).eval()
)
page_orientation_model = torch.compile(
mobilenet_v3_small_page_orientation(pretrained=True).eval()
)
predictor = models.ocr_predictor(
detection_model, recognition_model, assume_straight_pages=False
)
# NOTE: Only required for non-straight pages (`assume_straight_pages=False`) and non-disabled orientation classification
# Set the orientation predictors
predictor.crop_orientation_predictor = crop_orientation_predictor(crop_orientation_model)
predictor.page_orientation_predictor = page_orientation_predictor(page_orientation_model)
compiled_out = predictor(doc)
What's Changed
New Features
- [Feat] Add torch.compile support by @felixdittrich92 in https://github.com/mindee/doctr/pull/1791
- feat: :sparkles: tqdm slack by @odulcy-mindee in https://github.com/mindee/doctr/pull/1837
- [docs] Add note about labeling tool to training section by @felixdittrich92 in https://github.com/mindee/doctr/pull/1839
- feat: :sparkles: ClearML training loss logging by @odulcy-mindee in https://github.com/mindee/doctr/pull/1844
Bug Fixes
- [Fix] documentation deploy CI/CD job by @felixdittrich92 in https://github.com/mindee/doctr/pull/1781
- [CI] Fix PR labeler job & Rollback doc deploy deps by @felixdittrich92 in https://github.com/mindee/doctr/pull/1786
- [build] Fix tensorflow build dep by @felixdittrich92 in https://github.com/mindee/doctr/pull/1807
- fix: :bug: sanitize docker tag step by @odulcy-mindee in https://github.com/mindee/doctr/pull/1809
- [Bug] Fix vocabs and add corresponding test case by @felixdittrich92 in https://github.com/mindee/doctr/pull/1813
- [Bug] Replace mem leaking torch gaussian_blur in augmentations by @felixdittrich92 in https://github.com/mindee/doctr/pull/1822
- [Fix] Fix tqdm slack message write : monkeypatch by @felixdittrich92 in https://github.com/mindee/doctr/pull/1852
- [Fix] Fix loading targets in WILDRECEIPT init by @Razlaw in https://github.com/mindee/doctr/pull/1859
Improvements
- [TF] Change eager mode by @felixdittrich92 in https://github.com/mindee/doctr/pull/1763
- [models] Change Resize kwargs to args for each zoo predictor by @cmoscardi in https://github.com/mindee/doctr/pull/1765
- [Docs] Add community docs by @felixdittrich92 in https://github.com/mindee/doctr/pull/1766
- [CI/CD] update Dependabot by @felixdittrich92 in https://github.com/mindee/doctr/pull/1768
- adding pytorch DDP script of detection task by @sarjil77 in https://github.com/mindee/doctr/pull/1777
- docs: fix faulty code for prediction and recognition demos by @khanfarhan10 in https://github.com/mindee/doctr/pull/1800
- feat: :sparkles: specify
output_dir
in reference scripts by @odulcy-mindee in https://github.com/mindee/doctr/pull/1820 - [references] Unify sched + optim config and add AdamW as option by @felixdittrich92 in https://github.com/mindee/doctr/pull/1825
- [misc] Update header year & clearer built-in datasets progress bar msg by @felixdittrich92 in https://github.com/mindee/doctr/pull/1831
- Adding Gujarati Language support by @sarjil77 in https://github.com/mindee/doctr/pull/1845
- [references] Update Logging by @felixdittrich92 in https://github.com/mindee/doctr/pull/1847
Miscellaneous
- [misc] post release modifications v0.10.0 by @felixdittrich92 in https://github.com/mindee/doctr/pull/1756
- Introducing docTR Guru on Gurubase.io by @kursataktas in https://github.com/mindee/doctr/pull/1760
- [tests/style] Fix tf test and formatting by @felixdittrich92 in https://github.com/mindee/doctr/pull/1762
- [build] Upgrade py 3.10 by @felixdittrich92 in https://github.com/mindee/doctr/pull/1770
- [misc] Change prefered backend from tf to torch by @felixdittrich92 in https://github.com/mindee/doctr/pull/1779
- bump: :arrow_up: CUDA Version by @odulcy-mindee in https://github.com/mindee/doctr/pull/1769
- [CI/code quality] Add clear github runner caches job + mypy fixes by @felixdittrich92 in https://github.com/mindee/doctr/pull/1783
- ci(dependabot): remove frgfm from automatic reviewers by @frgfm in https://github.com/mindee/doctr/pull/1787
- [CI] public docker job - change commit tag to version by @felixdittrich92 in https://github.com/mindee/doctr/pull/1789
- [misc] Small DDP script adjustments by @felixT2K in https://github.com/mindee/doctr/pull/1793
- [misc] Replace in deprecation dropped httpx.AsyncClient app arg by @felixT2K in https://github.com/mindee/doctr/pull/1802
- [docs] Tiny documentation export page fix by @felixdittrich92 in https://github.com/mindee/doctr/pull/1824
- [CI/CD] Replace deprecated parts conda & publish by @felixdittrich92 in https://github.com/mindee/doctr/pull/1842
- [misc] Increase minor version to v0.11.0 by @felixdittrich92 in https://github.com/mindee/doctr/pull/1858
New Contributors
- @agarkovv made their first contribution in https://github.com/mindee/doctr/pull/1758
- @kursataktas made their first contribution in https://github.com/mindee/doctr/pull/1760
- @cmoscardi made their first contribution in https://github.com/mindee/doctr/pull/1765
- @sarjil77 made their first contribution in https://github.com/mindee/doctr/pull/1777
- @Razlaw made their first contribution in https://github.com/mindee/doctr/pull/1859
Full Changelog: https://github.com/mindee/doctr/compare/v0.10.0...v0.11.0