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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user