feat: support PP-OCRv6 PyTor as the inference engine

This commit is contained in:
SWHL committed 2026-07-02 17:54:27 +08:00
1 parent c18432567f
commit 370f01d0a8
11 files changed
+1100 -288

No files matched your search

+14 -2
View File
@@ -143,7 +143,13 @@ def test_engine_tensorrt():
@mark.parametrize(
"engine_type",
[EngineType.ONNXRUNTIME, EngineType.OPENVINO, EngineType.PADDLE],
[
EngineType.ONNXRUNTIME,
EngineType.OPENVINO,
EngineType.PADDLE,
EngineType.TORCH,
EngineType.MNN,
],
)
def test_ppocrv6_det_small(engine_type):
engine = RapidOCR(
@@ -161,7 +167,13 @@ def test_ppocrv6_det_small(engine_type):
@mark.parametrize(
"engine_type",
[EngineType.ONNXRUNTIME, EngineType.OPENVINO, EngineType.PADDLE],
[
EngineType.ONNXRUNTIME,
EngineType.OPENVINO,
EngineType.PADDLE,
EngineType.TORCH,
EngineType.MNN,
],
)
def test_ppocrv6_rec_small(engine_type):
engine = RapidOCR(