Skip to content

Commit 286d475

Browse files
committed
docs: update docs
1 parent bb03133 commit 286d475

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/install_usage/rapidocr/parameters.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ EngineConfig:
101101
cann_ep_cfg:
102102
device_id: 0
103103
arena_extend_strategy: "kNextPowerOfTwo"
104-
npu_mem_limit: 20 * 1024 * 1024 * 1024
104+
npu_mem_limit: 21474836480 # 20 * 1024 * 1024 * 1024
105105
op_select_impl_mode: "high_performance"
106106
optypelist_for_implmode: "Gelu"
107107
enable_cann_graph: true
@@ -143,12 +143,12 @@ PyTorch API 参见:[PyTorch documentation](https://pytorch.org/docs/stable/ind
143143

144144
```yaml linenums="1"
145145
Det:
146-
engine_type: 'onnxruntime'
147-
lang_type: 'ch'
148-
model_type: 'mobile'
149-
ocr_version: 'PP-OCRv4'
146+
engine_type: "onnxruntime"
147+
lang_type: "ch"
148+
model_type: "mobile"
149+
ocr_version: "PP-OCRv4"
150150
151-
task_type: 'det'
151+
task_type: "det"
152152
153153
model_path: null
154154
model_dir: null
@@ -198,20 +198,20 @@ Det:
198198

199199
```yaml linenums="1"
200200
Cls:
201-
engine_type: 'onnxruntime'
202-
lang_type: 'ch'
203-
model_type: 'mobile'
204-
ocr_version: 'PP-OCRv4'
201+
engine_type: "onnxruntime"
202+
lang_type: "ch"
203+
model_type: "mobile"
204+
ocr_version: "PP-OCRv4"
205205
206-
task_type: 'cls'
206+
task_type: "cls"
207207
208208
model_path: null
209209
model_dir: null
210210
211211
cls_image_shape: [3, 48, 192]
212212
cls_batch_num: 6
213213
cls_thresh: 0.9
214-
label_list: ['0', '180']
214+
label_list: ["0", "180"]
215215
```
216216

217217
`engine_type (str)`: 同Det部分介绍。
@@ -238,12 +238,12 @@ Cls:
238238

239239
```yaml linenums="1"
240240
Rec:
241-
engine_type: 'onnxruntime'
242-
lang_type: 'ch'
243-
model_type: 'mobile'
244-
ocr_version: 'PP-OCRv4'
241+
engine_type: "onnxruntime"
242+
lang_type: "ch"
243+
model_type: "mobile"
244+
ocr_version: "PP-OCRv4"
245245
246-
task_type: 'rec'
246+
task_type: "rec"
247247
248248
model_path: null
249249
model_dir: null

0 commit comments

Comments
 (0)