Download Latest Version v0.12.0 source code.zip (4.0 MB)
Email in envelope

Get an email when there's a new version of DocTR

Home / v0.12.0
Name Modified Size InfoDownloads / Week
Parent folder
crnn_vgg16_bn-0417f351.pt 2025-06-23 63.3 MB
README.md 2025-06-20 6.2 kB
v0.12.0 source code.tar.gz 2025-06-20 3.7 MB
v0.12.0 source code.zip 2025-06-20 4.0 MB
Totals: 4 Items   71.0 MB 14

Note: docTR 0.12.0 requires python >= 3.10 Note: docTR 0.12.0 requires either TensorFlow >= 2.15.0 or PyTorch >= 2.0.0

[!WARNING] TensorFlow Backend Deprecation Notice

Using docTR with TensorFlow as a backend is deprecated and will be removed in the next major release (v1.0.0). We recommend switching to the PyTorch backend, which is more actively maintained and supports the latest features and models. Alternatively, you can use OnnxTR, which does not require TensorFlow or PyTorch.

This decision was made based on several considerations:

  • Allows better focus on improving the core library
  • Frees up resources to develop new features faster
  • Enables more targeted optimizations with PyTorch

[!WARNING] This release is the last minor release supporting TensorFlow as backend

What's changed

New features

  • A new lightweight recognition model viptr_tiny was added
  • New built-in dataset added - COCO-Text V2
  • A new custom model loading interface

    :::python

    NEW

    model = vitstr_small(pretrained=False, pretrained_backbone=False) model.from_pretrained("<PATH_TO>") # local path or url to .pt or .h5

    Instead of depending on the backend

    reco_params = torch.load('<path_to_pt>', map_location="cpu") reco_model.load_state_dict(reco_params)

    Or with TensorFlow

    reco_model.load_weights(..)

What's Changed

Breaking Changes 🛠

New Features

Bug Fixes

Improvements

Miscellaneous

New Contributors

Full Changelog: https://github.com/mindee/doctr/compare/v0.11.0...v0.12.0

Source: README.md, updated 2025-06-20