1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-08-20 04:59:53 +08:00

Feat: adopt upstream standalone ONNX OCR backend

Adopt the standalone OnnxOcr from upstream PR #5893 (381bb8d05,
by Horizon101011), which vendors cnocr's pure-Python pipeline so
the ONNX path loads no mxnet at runtime. Backend is selected via
deploy config, keeping onnxruntime a standard dependency and onnx
the default.

Co-authored-by: Horizon101011 <43370844+Horizon101011@users.noreply.github.com>
This commit is contained in:
positnuec
2026-08-16 21:56:43 +08:00
parent b1100369f7
commit 239f252881
17 changed files with 338 additions and 166 deletions

View File

@@ -36,7 +36,7 @@ class ConfigModel:
OcrServerPort: int = 22268
OcrClientAddress: str = "127.0.0.1:22268"
OcrBackend: str = "onnx"
IntraOpThreads: Optional[int] = None
OnnxIntraOpThreads: Optional[int] = None
# Update
EnableReload: bool = True