π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
fix: fixed dml typo
SWHL7b2d368ac62f
diff --git a/python/rapidocr/config.yaml b/python/rapidocr/config.yamlindex 7327e79..30de7a5 100644--- a/python/rapidocr/config.yaml+++ b/python/rapidocr/config.yaml@@ -35,7 +35,7 @@ EngineConfig:do_copy_in_default_stream: trueuse_dml: false- dm_ep_cfg: null+ dml_ep_cfg: nulluse_cann: falsecann_ep_cfg:diff --git a/python/rapidocr/inference_engine/onnxruntime/provider_config.py b/python/rapidocr/inference_engine/onnxruntime/provider_config.pyindex 4a5f0f3..18092c9 100644--- a/python/rapidocr/inference_engine/onnxruntime/provider_config.py+++ b/python/rapidocr/inference_engine/onnxruntime/provider_config.py@@ -59,8 +59,8 @@ class ProviderConfig:return dict(self.cfg.cuda_ep_cfg)def dml_ep_cfg(self) -> Dict[str, Any]:- if self.cfg.dm_ep_cfg is not None:- return self.cfg.dm_ep_cfg+ if self.cfg.dml_ep_cfg is not None:+ return self.cfg.dml_ep_cfgif self.is_cuda_available():return self.cuda_ep_cfg()diff --git a/python/tests/test_files/test_config.yaml b/python/tests/test_files/test_config.yamlindex 6f6ccec..9a77659 100644--- a/python/tests/test_files/test_config.yaml+++ b/python/tests/test_files/test_config.yaml@@ -35,7 +35,7 @@ EngineConfig:do_copy_in_default_stream: trueuse_dml: false- dm_ep_cfg: null+ dml_ep_cfg: nulluse_cann: falsecann_ep_cfg: