8000 build(deps): bump the python-minor group across 1 directory with 20 updates by dependabot[bot] · Pull Request #746 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

build(deps): bump the python-minor group across 1 directory with 20 updates - #746

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/fastapi_backend/python-minor-d536dbb82c
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/fastapi_backend/python-minor-d536dbb82c

Conversation

@dependabot
@dependabot dependabot Bot commented on behalf of github Dec 2, 2026
Copy link
Copy Markdown
Contributor

Bumps the python-minor group with 20 updates in the /fastapi_backend directory:

Package From To
pydantic-settings 2.16.2 2.16.3
numpy 2.5.4 2.5.5
pyyaml 6.0.3 6.0.4
markdown 3.11.2 3.11.4
regex 2026.9.29 2026.11.25
funasr 1.4.21 1.4.29
modelscope 1.40.2 1.40.3
laya-mlx 0.6.0 0.9.2
pyannote-audio 4.0.7 4.1.1
opencv-python-headless 5.0.0.93 5.1.0.95
python-doctr 1.1.0 1.2.0
onnxruntime 1.31.1 1.32.0
transformers 5.22.1 5.24.1
openshell 0.1.6 0.1.10
botocore 1.43.123 1.44.13
extract-msg 0.58.1 0.58.3
ruff 0.17.3 0.17.6
httpx 0.28.1 0.29.0
coverage 7.17.1 7.17.5
mkdocs-material 9.8.0 9.8.2

Updates pydantic-settings from 2.16.2 to 2.16.3

Release notes

Sourced from pydantic-settings's releases.

v2.16.3

Highlights

This patch release fixes a security issue in the default secrets source, a regression from 2.14.2 that dropped nested secrets on Kubernetes, and a CliApp.serialize round-trip bug with CliUnknownArgs.

Security

  • SecretsSettingsSource no longer follows symlinks that resolve outside secrets_dir (#1138, fixes #1137). A secret file that is a symbolic link to a file outside secrets_dir was read into the matching field, so anyone who could place a link in secrets_dir could make the application load any file it can read. This is the plain-source counterpart of GHSA-4xgf-cpjx-pc3j, whose fix in 2.14.2 covered only NestedSecretsSettingsSource. Links that stay inside secrets_dir, such as the Kubernetes secret volume layout (passwd linking to ..data/passwd), still work.

Behavior changes

  • A secret file that resolves outside secrets_dir is now skipped with a warning instead of being read (#1138). If you deliberately point secret files at targets elsewhere on disk, move or copy the targets into secrets_dir, or point secrets_dir at the directory that holds them.
  • NestedSecretsSettingsSource skips hidden entries (names starting with .) again, as it did before 2.14.2, and stops with a SettingsError after 10,000 entries (#1070).

Bug fixes

Secrets

  • With secrets_nested_subdir=True, a directory reached through a second symlink is loaded again (#1070, fixes #1061). Since 2.14.2, only the name that sorted first was walked, so the standard Kubernetes secret volume layout (db linking to ..data/db) silently lost its nested secrets.
  • A symlink loop inside secrets_dir is skipped instead of aborting the load with RuntimeError on Python 3.11 and 3.12 (#1070, #1138).

CLI

  • CliApp.serialize keeps each level's CliUnknownArgs before that level's subcommand token (#1050, fixes #1048). They were emitted after the last subcommand, so parsing the output again moved a parent's unknown args onto the subcommand.

What's Changed

New Contributors

Full Changelog: pydantic/pydantic-settings@v2.16.2...v2.16.3

Commits
  • 50e676c Prepare release 2.16.3
  • e394a88 Prevent SecretsSettingsSource from following symlinks outside secrets_dir (#1...
  • 2e66451 Load nested secrets reached through a second directory link (#1070)
  • 0379552 Fix CliApp.serialize moving a parent unknown args into the subcommand (#1050)
  • See full diff in compare view

Updates numpy from 2.5.4 to 2.5.5

Release notes

Sourced from numpy's releases.

v2.5.5 (Nov 15, 2026)

NumPy 2.5.5 Release Notes

Released on 2026-11-15.

NumPy 2.5.5 is a patch release that fixes bugs discovered after the 2.5.4 release. It is unusually large for a patch release due to bugs discovered during continuing work on strings for the upcoming 2.6.0 release, ongoing threading work, the eMudhra compromise fixes, and updates in GitHub CI infrastructure.

This release supports Python versions 3.12-3.15.

Compatibility notes

  • Casting a structured void dtype or subarray dtype to numpy.dtypes.StringDType now raises a TypeError instead of interpreting the raw bytes of each element as UTF-8.

    (gh-33298)

Contributors

A total of 12 people contributed to this release. People with a "+" by their names contributed a patch for the first time.

  • Anush Vishwakarma +
  • Arthur Lacote
  • Bharath Pranav +
  • Charles Harris
  • David King +
  • Iason Krommydas
  • Joren Hammudoglu
  • Kevin Sheppard
  • Matti Picus
  • Nathan Goldbaum
  • Peter Hawkins
  • Shubham Bansal +

Pull requests merged

A total of 37 pull requests were merged for this release.

  • #32971: MAINT: Prepare 2.5.x for further development
  • #33100: MAINT: Update OpenBLAS to 0.3.34.237.2
  • #33114: MAINT: Update cibuildwheel to v4.3.3
  • #33117: BUG: warm finfo cache with float64 on 2.5.x (gh-32947)
  • #33130: MAINT: Update pixi workflow from main.
  • #33141: MAINT: Update cibuildwheel to v4.3.4 and uv to v0.13.5
  • #33155: BUG: fix nanquantile dtype for all-NaN first slice (#32940)

... (truncated)

Commits

Updates pyyaml from 6.0.3 to 6.0.4

Release notes

Sourced from pyyaml's releases.

6.0.4

What's Changed

  • Added support for Python 3.15.
  • Dropped support for EoL Python 3.8, 3.9.
  • Fixed exponential merge key expansion (#937).
  • Exposed libyaml 0.2.6 recursion control API (#1010) - no-op when missing.
  • Bumped wheel builds to libyaml 0.2.6.

Full Changelog: yaml/pyyaml@6.0.3...6.0.4

Changelog

Sourced from pyyaml's changelog.

6.0.4 (2026-11-20)

Commits

Updates markdown from 3.11.2 to 3.11.4

Release notes

Sourced from markdown's releases.

Release 3.11.4

Fixed

  • Fix quadratic rendering time for many unclosed square brackets in links and images (#798).
  • The footnotes extension no longer takes quadratic time to assign ids to many references to the same footnote (#1726).
  • Release the parsed tree and source lines in reset() so a reused Markdown instance no longer retains the last document in memory (#1725).
  • The toc extension no longer raises TypeError for a heading whose data-toc-label attribute is present but valueless, as the attr_list extension's bare-attribute syntax ({: data-toc-label }) writes it: like a heading with no data-toc-label, its text is used as the TOC name (#1712).
  • The toc extension no longer raises TypeError for a heading whose id attribute is present but valueless, as the attr_list extension's bare-attribute syntax ({id}) writes it: like a heading with no id at all, it now gets a generated slug (#1705).
  • Fix for complex cases in new emphasis handling where text could be unexpectedly dropped (#1694).
  • Fix rule of 3 handling in new emphasis handling where an opener skipped by the rule could still be paired with the closer, dropping text (#1694).
  • Fix the unused part of a partially consumed closing delimiter run being classified using the replacement placeholder instead of the text that preceded it (#1694).
  • Fix quadratic processing time in the fenced_code extension for documents with many fenced code blocks (#1660).
  • Reduce processing time for long blocks which are split into many smaller blocks: the rest of the block is no longer scanned with a regular expression for a hash header or an admonition when it cannot contain one, and Setext headers no longer split and rejoin the rest of the block (#1703).
  • Stop list nesting short of the interpreter's recursion limit, as blockquote nesting already is, instead of raising RecursionError on a deeply nested list. The markers which no longer nest are kept as text (#1679).
  • Fix quadratic-time splitting of a list block whose items span many lines, which dominated the time taken to render a deeply nested list (#1679).
  • Stop definition list nesting short of the recursion limit, so deeply nested definitions are kept as text instead of raising an uncaught RecursionError (#1700).
  • Fix quadratic processing time in the tables extension for long blocks which are split into many smaller blocks, such as many headers with no blank lines between them (#1704).
  • Fix quadratic processing time in emphasis handling for many unclosed openers which the rule of 3 keeps an ambiguous closer from pairing with, such as *a **b repeated (#1720).
  • Abbreviation definitions in the abbr extension no longer span lines. A line which starts with *[ but is not a definition was read up to a later definition in the same block, dropping the lines in between, and many such lines in one block took quadratic time (#1728).

Release 3.11.3

... (truncated)

Changelog

Sourced from markdown's changelog.

[3.11.4] - 2026-11-25

Fixed

  • Fix quadratic rendering time for many unclosed square brackets in links and images (#798).
  • The footnotes extension no longer takes quadratic time to assign ids to many references to the same footnote (#1726).
  • Release the parsed tree and source lines in reset() so a reused Markdown instance no longer retains the last document in memory (#1725).
  • The toc extension no longer raises TypeError for a heading whose data-toc-label attribute is present but valueless, as the attr_list extension's bare-attribute syntax ({: data-toc-label }) writes it: like a heading with no data-toc-label, its text is used as the TOC name (#1712).
  • The toc extension no longer raises TypeError for a heading whose id attribute is present but valueless, as the attr_list extension's bare-attribute syntax ({id}) writes it: like a heading with no id at all, it now gets a generated slug (#1705).
  • Fix for complex cases in new emphasis handling where text could be unexpectedly dropped (#1694).
  • Fix rule of 3 handling in new emphasis handling where an opener skipped by the rule could still be paired with the closer, dropping text (#1694).
  • Fix the unused part of a partially consumed closing delimiter run being classified using the replacement placeholder instead of the text that preceded it (#1694).
  • Fix quadratic processing time in the fenced_code extension for documents with many fenced code blocks (#1660).
  • Reduce processing time for long blocks which are split into many smaller blocks: the rest of the block is no longer scanned with a regular expression for a hash header or an admonition when it cannot contain one, and Setext headers no longer split and rejoin the rest of the block (#1703).
  • Stop list nesting short of the interpreter's recursion limit, as blockquote nesting already is, instead of raising RecursionError on a deeply nested list. The markers which no longer nest are kept as text (#1679).
  • Fix quadratic-time splitting of a list block whose items span many lines, which dominated the time taken to render a deeply nested list (#1679).
  • Stop definition list nesting short of the recursion limit, so deeply nested definitions are kept as text instead of raising an uncaught RecursionError (#1700).
  • Fix quadratic processing time in the tables extension for long blocks which are split into many smaller blocks, such as many headers with no blank lines between them (#1704).
  • Fix quadratic processing time in emphasis handling for many unclosed openers which the rule of 3 keeps an ambiguous closer from pairing with, such as *a **b repeated (#1720).
  • Abbreviation definitions in the abbr extension no longer span lines. A line which starts with *[ but is not a definition was read up to a later definition in the same block, dropping the lines in between, and many such lines in one block took quadratic time (#1728).

... (truncated)

Commits
  • 27c0141 Bump version to 3.11.4
  • 6eb4e3e Fix quadratic time for unclosed brackets in link text
  • df8b658 Release parsed tree and source lines after convert()
  • 4533285 Avoid quadratic time for duplicate footnote references
  • 8d20c3b Limit abbreviation definitions to one line
  • 5a9c1ae docs: fix possessive in contributing guide
  • 618441a tests: fix typo in extension name (non_existant → non_existent)
  • 5609061 Avoid rescanning delimiter stacks for the rule of 3
  • e3c7f60 Fix dead Babelmark FAQ link in docs index
  • 2c96e36 Fix toc crash on a heading with a valueless data-toc-label
  • Additional commits viewable in compare view

Updates regex from 2026.9.29 to 2026.11.25

Changelog

Sourced from regex's changelog.

Version 2026.11.30:

Git issue 649: test_regex.py:4719: SyntaxWarning: "\." is an invalid escape sequence

PR 550: Adding clear links to the unicode documentation so that users can find the valid values for the \p{} syntax

PR 651: Ignore the case flags of uncased characters when checking the firstset

Git issue 634: VERBOSE mode ignores non-ASCII whitespace in VERSION0 (PR 652)

Version 2026.11.25:

PR 647: Use sparse active-repeat checkpoints in push_repeats/pop_repeats and guard resets

PR 648: Do not add out-of-line CALL_REF widths after SUCCESS to enclosing min_width

Version 2026.11.24:

PR 646: Fix use-after-free of Capture objects kept past expandf/subf

Version 2026.11.23:

Git issue 642: `[^a]|[^b]` matches like `[^ab]`, and negated sets miss matches next to `(?i:...)`

PR 644: SEGV in Match.fuzzy_changes with BESTMATCH+POSIX: restore_best_match didn't restore total_errors

Version 2026.11.19:

PR 638: findall: return strings for a single group that repeats

PR 639: Fix locking of scanner/splitter state shared across threads

Version 2026.11.18:

Git issue 637: regex.WORD \b does not follow Unicode 17 default word boundaries

Version 2026.11.15:

Git issue 636: \X splits Indic conjuncts since 2026.11.7 (GB9c never applies)

PR 635: Fix out-of-bounds read in the partial-match string search

Version 2026.11.9:

Git issue 632: AttributeError: 'AnyAll' object has no attribute 'rebuild' for [^\d\D] with IGNORECASE

Git issue 633: TypeError from optimise() (unexpected keyword 'in_set') for (?V1)[a&&[\PL\pL]] with IGNORECASE

Version 2026.11.8:

... (truncated)

Commits
  • df4785f PR 648: Do not add out-of-line CALL_REF widths after SUCCESS to enclosing min...
  • 3a7a53c Merge pull request #647 from jeanmonet/sparse-repeat-checkpoints
  • 83a15e6 Add regression test for sparse repeat checkpoints with large DEFINE blocks
  • 234f7d8 Use sparse active-repeat checkpoints in push_repeats/pop_repeats and guard re...
  • 504717c PR 646: Fix use-after-free of Capture objects kept past expandf/subf
  • caa8080 Git issue 642: [^a]|[^b] matches like [^ab], and negated sets miss matche...
  • 3817c5d PR 639: Fix locking of scanner/splitter state shared across threads
  • a50a8d5 PR 638: findall: return strings for a single group that repeats
  • b5b512a Git issue 637: regex.WORD \b does not follow Unicode 17 default word boundaries
  • a7dc1e1 PR 635: Fix out-of-bounds read in the partial-match string search
  • Additional commits viewable in compare view

Updates funasr from 1.4.21 to 1.4.29

Commits
  • ea49266 Release FunASR 1.4.29 (#3940)
  • 14f2bf3 fix(release): preserve three-item news layout
  • d5fffac chore(release): prepare FunASR 1.4.29
  • 16174e2 docs(site): explain timestamp units, alignment and recording timelines
  • 39533ae docs(site): explain timestamp units, alignment and recording timelines
  • 68aa96d fix(websocket): honor audio_fs across model calls (#3937)
  • 4da23bc fix(timestamp): keep a timestamp for every token when the last frame is heavy...
  • f7b6131 fix(websocket): pass the client's audio_fs to the Python server's models
  • c8d8caa fix(timestamp): time every token when the last frame owes CIF fires
  • 47ba463 docs(site): explain CPU transcription memory, timing and workload limits
  • Additional commits viewable in compare view

Updates modelscope from 1.40.2 to 1.40.3

Release notes

Sourced from modelscope's releases.

v1.40.3

Enhance

  • Requires modelscope-hub>=0.7.0.
  • New modelscope.utils.file_utils.get_hub_cache_root(); modelscope.hub.cache_manager re-exports get_cache_root and resolve_cached_snapshot. MS_CACHE_HOME is normalised to an absolute path when bridged into the hub config.

Fix

  • model_file_download(..., local_files_only=True) no longer calls the API to resolve the default revision, so offline downloads from cache work without network access or credentials.
  • ms clear-cache lists every resolved target before deleting and delegates to modelscope-hub's scoped cache APIs; cache deletion via FileSystemCache goes through the same validated removal, refusing empty identifiers, path traversal, out-of-root targets and symlinked paths.
  • update_local_model no longer copies models that already live under the legacy model root or the modelscope-hub cache root.
  • Hugging Face patch: hf_hub_download translates missing files to EntryNotFoundError and cache misses to LocalEntryNotFoundError, so callers relying on Hugging Face exception types keep working.
  • modelscope.hub.snapshot_download exports InvalidParameter again, preserving the shim module's exception contract.

Docs

  • Docstrings for the legacy cache-path helpers now state that they describe the legacy layout only and point to get_hub_cache_root(), snapshot_download() and resolve_cached_snapshot().

What's Changed

Full Changelog: modelscope/modelscope@v1.40.2...v1.40.3

Commits

Updates laya-mlx from 0.6.0 to 0.9.2

Release notes

Sourced from laya-mlx's releases.

laya-mlx v0.9.2

What's Changed

Full Changelog: mizorewww/laya-mlx@v0.9.1...v0.9.2

laya-mlx v0.9.1

What's Changed

New Contributors

Full Changelog: mizorewww/laya-mlx@v0.8.1...v0.9.1

laya-mlx v0.8.1

What's Changed

Full Changelog: mizorewww/laya-mlx@v0.8.0...v0.8.1

laya-mlx v0.8.0

What's Changed

Full Changelog: mizorewww/laya-mlx@v0.7.2...v0.8.0

laya-mlx v0.7.2

What's Changed

... (truncated)

Changelog

Sourced from laya-mlx's changelog.

0.9.2 — 2026-11-26

Follows upstream v0.5.5 (8f445c62). Compatibility record.

  • No change from upstream host behavior. Upstream v0.5.5 is a documentation release: its README cites the accompanying paper at the top and drops duplicated sections; no code changes.
  • Validation: host, contract and native tests and the public API audit on the release source. Real-checkpoint validation was not re-run.

0.9.1 — 2026-11-25

Follows upstream v0.5.4 (60a6ce91). Compatibility record.

  • Agno remote routing hints: LayaAgnoRouter and LayaAgnoGuardrail forward task and a string lang_guess to the remote server instead of raising TypeError, like the LangChain, CrewAI and LlamaIndex adapters.
  • Sequential models on the CPU compute their action heads in FP32, as the parallel layout already did, avoiding FP16 rounding in every action score.
  • Long local attention bounds its key/value work for padded and multi-row batches from a sequence length of 768, and converted shortlist embeddings are no longer copied.
  • No change from upstream host behavior. Upstream v0.5.4 moves laya.Learner, laya.Escalator and laya.vllm_teacher to the separate, noncommercially licensed vegaml-learn package; they read with vegaml's reader and remain not included.
  • Validation: host, contract and native tests and the public API audit on the release source. Real-checkpoint validation was not re-run.

0.9.0 — 2026-11-23

Follows upstream v0.5.3 (abefd7d9). Compatibility record.

  • Short unaccented Spanish and Portuguese route multilingual: language detection gains upstream's unaccented and closed-class Spanish and Portuguese stopwords (puedo, estoy, despues, faco, qual, ...), so accent-stripped tickets such as no puedo entrar a mi cuenta are no longer read as English, alone or beside English boilerplate in a structured state. Italian qual stays Italian, and English words such as mis, dime and solo stay English.
  • Single-sequence encoder work is submitted to Metal while the graph is built, single-sequence CPU batches score in FP32 to avoid an MLX FP16 crash, and long local attention bounds its key/value work to each block's window.
  • Upstream's vega choice-label folding and ONNX export verification apply to modules not shipped here.
  • Validation: host, contract and native tests and the public API audit on the release source. Upstream's idle-window timing test failed on the runner, as it does on the pre-port commit. Real-checkpoint validation was not re-run.

0.8.1 — 2026-11-21

Follows upstream v0.5.2 (e150aa92). Compatibility record.

  • No change in behavior. Upstream v0.5.2 adds laya.Escalator and laya.vllm_teacher, re-exports of vegaml 0.18's teacher for its continuous learner; like laya.Learner, they read

... (truncated)

Commits
  • efc2c38 Port upstream v0.5.5 and prepare 0.9.2 (#54)
  • e00fbf2 Port upstream v0.5.4 and prepare 0.9.1 (#50)
  • aa616b2 Rerun stalled releases and merge approved dependency updates
  • 0119d09 fix: accumulate sequential CPU action heads in FP32 (#46)
  • 12b776e perf: bound sliding attention for long padded and batched inputs (#47)
  • 8b517ec fix: forward Agno remote routing hints (#48)
  • d9ea41d perf: avoid copying converted shortlist embeddings (#49)
  • faaeb76 Review pull requests from forks
  • 7adc6a6 Merge pull request #45 from mizorewww/renovate/upstream-laya
  • 21d0ecf Port upstream v0.5.3 and prepare 0.9.0
  • Additional commits viewable in compare view

Updates pyannote-audio from 4.0.7 to 4.1.1

Release notes

Sourced from pyannote-audio's releases.

Version 4.1.1 (2026-11-19)

  • fix(task): avoid replaying the same training samples when resuming mid-epoch

Version 4.1.0 (2026-11-17)

Breaking changes

  • BREAKING: require Python 3.11 or newer; Python 3.10 is no longer supported
  • BREAKING(io): rename Audio.downmix_and_resample to Audio.select_channels_and_resample
  • BREAKING(io): remove Audio(mono=...); use the file's channel policy instead.
  • BREAKING(cli): remove gap-filling optimization (--optimize) and OptimizedMinDurationOff outputs from the benchmark command

Features and improvements

  • feat(task): support channel: {int | downmix | random | all} for audio loading (requires pyannote.database >= 6.3.0)
  • feat(cli): add support for multi-objective pipeline optimization
  • feat(cli): add --subfolder option to benchmark command @​antoinelaurent
  • improve(model): compute WeSpeaker fbank features on MPS instead of falling back to CPU @​Isalia20

Fixes

Changelog

Sourced from pyannote-audio's changelog.

Version 4.1.1 (2026-11-19)

  • fix(task): avoid replaying the same training samples when resuming mid-epoch

Version 4.1.0 (2026-11-17)

Breaking changes

  • BREAKING: require Python 3.11 or newer; Python 3.10 is no longer supported
  • BREAKING(io): rename Audio.downmix_and_resample to Audio.select_channels_and_resample
  • BREAKING(io): remove Audio(mono=...); use the file's channel policy instead.
  • BREAKING(cli): remove gap-filling optimization (--optimize) and OptimizedMinDurationOff outputs from the benchmark command

Features and improvements

  • feat(task): support channel: {int | downmix | random | all} for audio loading (requires pyannote.database >= 6.3.0)
  • feat(cli): add support for multi-objective pipeline optimization
  • feat(cli): add --subfolder option to benchmark command @​antoinelaurent
  • improve(model): compute WeSpeaker fbank features on MPS instead of falling back to CPU @​Isalia20

Fixes

  • fix(io): fix Audio.crop raising when an in-memory waveform is cropped up to its very end @​MohammadHijjawi97
  • fix(task): avoid training crashes with spawn/forkserver workers, including Python 3.14's default on Linux, by warning and using num_workers=0
  • fix(task): fix balance option crashing training with KeyError: 'metadata' @​MohammadHijjawi97
  • fix(model): restore fbank_only mode in WeSpeaker embedding models
  • fix(model): honor the configured linear hidden size in ToTaToNet @​antonsoo
  • fix(pipeline): fix VBxClustering crashing when more speakers are requested than there are embeddings to cluster @​MohammadHijjawi97
  • fix(pipeline): omit unset token and cache_dir when expanding $model/ references so loaders can inherit runtime options
  • fix(utils): fix SpeakerDiarizationMixin.optimal_mapping reference is a mapping @​Kayvan-Zahiri
  • fix(utils): fix discrete_diarization_error_rate returning 0.0 on long recordings (float16 frame counts overflowed) @​Kayvan-Zahiri
Commits

Updates opencv-python-headless from 5.0.0.93 to 5.1.0.95

Release notes

Sourced from opencv-python-headless's releases.

5.1.0.95

Complete OpenCV 5.1.0 changelog : https://github.com/opencv/opencv/wiki/OpenCV-Change-Logs#version510

Python specific:

  • Added experimental Windows for ARM support (without FFmpeg)
  • Bumped ffmpeg to 9.0.2
  • Raised minimal Mac OS version to 15
  • Fixed FFmpeg GPL dependencies
Commits

Updates python-doctr from 1.1.0 to 1.2.0

Release notes

Sourced from python-doctr's releases.

v1.2.0

Note: docTR 1.2.0 requires python >= 3.11, torch >= 2.11.0 and torchvision >= 0.26.0

[!NOTE] docTR now reads formulas and handles very long documents. v1.2.0 adds formula recognition (LaTeX output in every export format) and lazy, chunked and streaming prediction, so a 1000+ page PDF runs in one call without the memory growing with the page count. It also ships new table structure and layout checkpoints, much better reading order, figure export, faster recognition and loop-based ONNX export for the autoregressive models.

[!IMPORTANT] SAR and MASTER were less accurate in v1.1.0. A shared activation module silently dropped one ReLU from the ResNet31 stem of sar_resnet31 and master. This is fixed: on IIIT5K, master goes from 67.8% back to 76.7% word accuracy and sar_resnet31 from 64.1% back to 76.1%. If you use either model, please upgrade. Thanks to @​Zephyr4772 for finding and fixing it (#2232).

What's Changed

Breaking Changes 🛠

  • The minimum supported versions were raised from torch 2.0.0 to torch 2.11.0 and from torchvision 0.15.0 to torchvision 0.26.0
  • Word confidences changed for crnn_*, viptr_tiny, sar_resnet31 and master. Only the probabilities of the predicted characters are aggregated now: CTC blank frames and the positions after <eos> are ignored. The decoded words are the same, but the confidences are higher, so thresholds tuned on v1.1.0 confidences may need to be adjusted. vitstr_* and parseq are unchanged. An empty prediction now has a confidence of 0.
  • VOCABS["latex"] was removed and replaced by doctr.datasets.LATEX_TOKENS (a token-list vocab used by the new formula model).
  • When the layout model runs, the Markdown / AsciiDoc / HTML exports now add a <!-- image --> placeholder for every detected figure. Pass images="none" to leave them out.
  • Tables are now built from the predicted cells and the words of the page. A table can have more cells than the model predicted, and rows/columns without text are removed. TableCell.objectness_score is None for a cell built from words.
  • Checkpoints are now loaded with torch.load(..., weights_only=True). Checkpoints that pickle arbitrary Python objects can no longer be loaded. Plain state_dicts are not affected.
  • doctr.models.modules.transformer.scaled_dot_product_attention now returns None in place of the attention weights, since it uses PyTorch's fused F.scaled_dot_product_attention.

New features

  • Formula recognition with the new FormulaNet architecture and an HGNetV2 backbone, with LaTeX output in every export format, by @​felixdittrich92
  • Lazy page sources & chunked / streaming predictors for long documents and large image collections, by @​felixdittrich92
  • Better tables: grids are built from the cells and the words of the page, a new TableCenterNet checkpoint is available, and the HTML export writes rowspan / colspan. By @​felixdittrich92 and @​sibisrinivasb
  • lw_detr_m checkpoint, the larger layout model, by @​felixdittrich92. The training of this model was funded by t2k
  • Figure export (FigureEncoder): figures found by the layout model are placed in the reading order and can be embedded in or linked from the Markdown / HTML / AsciiDoc exports. By @​felixdittrich92
  • Configurable word confidence aggregation (confidence_aggregation=...), by @​felixdittrich92
  • ONNX export of the decoding loops with export_model_to_onnx(..., dynamo=True) for formulanet, parseq and master, by @​felixdittrich92
  • New augmentations for photographed pages: RandomPerspective, RandomGlare and RandomLighting, by @​fercho1999leon

✨ Formula Recognition ✨

Left: the two Formula regions found on page 5 of "Attention Is All You Need". Right: page.export_as_html(), with the LaTeX predicted by formulanet rendered by KaTeX (equation number included).

docTR can now read mathematical formulas. In the OCR pipeline, each region the layout model labels as a Formula is removed from text detection, cropped and passed to the new formulanet model, which predicts its LaTeX source. The model follows the PP-FormulaNet design: an HGNetV2-B4 encoder with a small autoregressive transformer decoder. It was written from scratch under Apache-2.0 and trained on the printed and handwritten formulas of UniMER-1M.

Architecture Input shape # params Exact match Edit similarity BLEU
formulanet (256, 768, 3) 26.4 M 44.40 91.30 0.840

... (truncated)

Commits
  • 6a0c945 [docs] Add formula recognition to the overview pages, pipeline diagram and RE...
  • 770710c [misc] Release prep: version without tag prefix, SPDX license (#2233)
  • fa3cfc0 [models] Resolve ambiguous overlaps of split word crops by reading the region...
  • 9553cb6 [models] Fix SAR and MASTER accuracy: build a new activation module per layer...

…pdates

Bumps the python-minor group with 20 updates in the /fastapi_backend directory:

| Package | From | To |
| --- | --- | --- |
| [pydantic-settings](https://github.com/pydantic/pydantic-settings) | `2.16.2` | `2.16.3` |
| [numpy](https://github.com/numpy/numpy) | `2.5.4` | `2.5.5` |
| [pyyaml](https://github.com/yaml/pyyaml) | `6.0.3` | `6.0.4` |
| [markdown](https://github.com/Python-Markdown/markdown) | `3.11.2` | `3.11.4` |
| [regex](https://github.com/mrabarnett/mrab-regex) | `2026.9.29` | `2026.11.25` |
| [funasr](https://github.com/modelscope/FunASR) | `1.4.21` | `1.4.29` |
| [modelscope](https://github.com/modelscope/modelscope) | `1.40.2` | `1.40.3` |
| [laya-mlx](https://github.com/mizorewww/laya-mlx) | `0.6.0` | `0.9.2` |
| [pyannote-audio](https://github.com/pyannote/pyannote-audio) | `4.0.7` | `4.1.1` |
| [opencv-python-headless](https://github.com/opencv/opencv-python) | `5.0.0.93` | `5.1.0.95` |
| [python-doctr](https://github.com/mindee/doctr) | `1.1.0` | `1.2.0` |
| [onnxruntime](https://github.com/microsoft/onnxruntime) | `1.31.1` | `1.32.0` |
| [transformers](https://github.com/huggingface/transformers) | `5.22.1` | `5.24.1` |
| [openshell](https://github.com/ai-openshell/sdk-python) | `0.1.6` | `0.1.10` |
| [botocore](https://github.com/boto/botocore) | `1.43.123` | `1.44.13` |
| [extract-msg](https://github.com/TeamMsgExtractor/msg-extractor) | `0.58.1` | `0.58.3` |
| [ruff](https://github.com/astral-sh/ruff) | `0.17.3` | `0.17.6` |
| [httpx](https://github.com/encode/httpx) | `0.28.1` | `0.29.0` |
| [coverage](https://github.com/coveragepy/coveragepy) | `7.17.1` | `7.17.5` |
| [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.8.0` | `9.8.2` |



Updates `pydantic-settings` from 2.16.2 to 2.16.3
- [Release notes](https://github.com/pydantic/pydantic-settings/releases)
- [Commits](pydantic/pydantic-settings@v2.16.2...v2.16.3)

Updates `numpy` from 2.5.4 to 2.5.5
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v2.5.4...v2.5.5)

Updates `pyyaml` from 6.0.3 to 6.0.4
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/6.0.4/CHANGES)
- [Commits](yaml/pyyaml@6.0.3...6.0.4)

Updates `markdown` from 3.11.2 to 3.11.4
- [Release notes](https://github.com/Python-Markdown/markdown/releases)
- [Changelog](https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md)
- [Commits](Python-Markdown/markdown@3.11.2...3.11.4)

Updates `regex` from 2026.9.29 to 2026.11.25
- [Changelog](https://github.com/mrabarnett/mrab-regex/blob/hg/changelog.txt)
- [Commits](mrabarnett/mrab-regex@2026.9.29...2026.11.25)

Updates `funasr` from 1.4.21 to 1.4.29
- [Release notes](https://github.com/modelscope/FunASR/releases)
- [Commits](modelscope/FunASR@v1.4.21...v1.4.29)

Updates `modelscope` from 1.40.2 to 1.40.3
- [Release notes](https://github.com/modelscope/modelscope/releases)
- [Commits](modelscope/modelscope@v1.40.2...v1.40.3)

Updates `laya-mlx` from 0.6.0 to 0.9.2
- [Release notes](https://github.com/mizorewww/laya-mlx/releases)
- [Changelog](https://github.com/mizorewww/laya-mlx/blob/main/CHANGELOG.md)
- [Commits](mizorewww/laya-mlx@v0.6.0...v0.9.2)

Updates `pyannote-audio` from 4.0.7 to 4.1.1
- [Release notes](https://github.com/pyannote/pyannote-audio/releases)
- [Changelog](https://github.com/pyannote/pyannote-audio/blob/main/CHANGELOG.md)
- [Commits](pyannote/pyannote-audio@4.0.7...4.1.1)

Updates `opencv-python-headless` from 5.0.0.93 to 5.1.0.95
- [Release notes](https://github.com/opencv/opencv-python/releases)
- [Commits](https://github.com/opencv/opencv-python/commits)

Updates `python-doctr` from 1.1.0 to 1.2.0
- [Release notes](https://github.com/mindee/doctr/releases)
- [Commits](mindee/doctr@v1.1.0...v1.2.0)

Updates `onnxruntime` from 1.31.1 to 1.32.0
- [Commits](https://github.com/microsoft/onnxruntime/commits)

Updates `transformers` from 5.22.1 to 5.24.1
- [Release notes](https://github.com/huggingface/transformers/releases)
- [Commits](huggingface/transformers@v5.22.1...v5.24.1)

Updates `openshell` from 0.1.6 to 0.1.10
- [Release notes](https://github.com/ai-openshell/sdk-python/releases)
- [Commits](https://github.com/ai-openshell/sdk-python/commits/v0.1.10)

Updates `botocore` from 1.43.123 to 1.44.13
- [Commits](boto/botocore@1.43.123...1.44.13)

Updates `extract-msg` from 0.58.1 to 0.58.3
- [Release notes](https://github.com/TeamMsgExtractor/msg-extractor/releases)
- [Changelog](https://github.com/TeamMsgExtractor/msg-extractor/blob/master/CHANGELOG.md)
- [Commits](TeamMsgExtractor/msg-extractor@v0.58.1...v0.58.3)

Updates `ruff` from 0.17.3 to 0.17.6
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.17.3...0.17.6)

Updates `httpx` from 0.28.1 to 0.29.0
- [Release notes](https://github.com/encode/httpx/releases)
- [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)
- [Commits](encode/httpx@0.28.1...0.29.0)

Updates `coverage` from 7.17.1 to 7.17.5
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](coveragepy/coveragepy@7.17.1...7.17.5)

Updates `mkdocs-material` from 9.8.0 to 9.8.2
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](squidfunk/mkdocs-material@9.8.0...9.8.2)

---
updated-dependencies:
- dependency-name: pydantic-settings
  dependency-version: 2.16.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: numpy
  dependency-version: 2.5.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: pyyaml
  dependency-version: 6.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: markdown
  dependency-version: 3.11.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: regex
  dependency-version: 2026.11.25
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: funasr
  dependency-version: 1.4.29
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: modelscope
  dependency-version: 1.40.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: laya-mlx
  dependency-version: 0.9.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: pyannote-audio
  dependency-version: 4.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: opencv-python-headless
  dependency-version: 5.1.0.95
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: python-doctr
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: onnxruntime
  dependency-version: 1.32.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: transformers
  dependency-version: 5.24.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: openshell
  dependency-version: 0.1.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: botocore
  dependency-version: 1.44.13
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: extract-msg
  dependency-version: 0.58.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: ruff
  dependency-version: 0.17.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: httpx
  dependency-version: 0.29.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: coverage
  dependency-version: 7.17.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: mkdocs-material
  dependency-version: 9.8.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

0