Skip to content

📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

Update README.md

SWHLd983c693c817
diff --git a/python/onnxruntime_infer/README.md b/python/onnxruntime_infer/README.md
index 2257b4d..5b84f3f 100644
--- a/python/onnxruntime_infer/README.md
+++ b/python/onnxruntime_infer/README.md
@@ -114,17 +114,7 @@
model_path = '<path to model>'
- providers = [
- ('CUDAExecutionProvider', {
- 'device_id': 0,
- 'arena_extend_strategy': 'kNextPowerOfTwo',
- 'gpu_mem_limit': 2 * 1024 * 1024 * 1024,
- 'cudnn_conv_algo_search': 'EXHAUSTIVE',
- 'do_copy_in_default_stream': True,
- }),
- 'CPUExecutionProvider',
- ]
-
+ providers = ['CUDAExecutionProvider', 'CPUExecutionProvider']
session = ort.InferenceSession(model_path, providers=providers)
```
- C/C++版本
@@ -146,4 +136,4 @@
|:---:|:---:|:---:|
|CPU|46张图像|191 s|
|GPU|46张图像|52.38 s|
- ||||
\ No newline at end of file
+ ||||