1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-08-13 11:12:41 +08:00

Opt: use ONNX model converted from MXNet for faster OCR with MXNet fallback

This commit is contained in:
positnuec
2026-08-11 03:12:42 +08:00
parent 51f11c541c
commit 11d6de3138
27 changed files with 809 additions and 23 deletions

View File

@@ -38,6 +38,8 @@ class ConfigModel:
StartOcrServer: bool = False
OcrServerPort: int = 22268
OcrClientAddress: str = "127.0.0.1:22268"
OcrBackend: str = "onnx"
IntraOpThreads: Optional[int] = None
# Update
EnableReload: bool = True

View File

@@ -79,6 +79,14 @@ Deploy:
# Address of ocr server for alas instance to connect
# [Default] 127.0.0.1:22268
OcrClientAddress: 127.0.0.1:22268
# Use higher-performance backend for OCR instead of MXNet
# Available backends: onnx
# [Default] onnx
OcrBackend: onnx
# Number of threads used for intra-op parallelism in the ONNX session
# Leave as default if you are unsure of the impact
# [Default] null
IntraOpThreads: null
Update:
# Use auto update and builtin updater feature