File tree Expand file tree Collapse file tree 1 file changed +28
-8
lines changed
docs/install_usage/rapidocr Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,34 @@ result.vis()
103103 ```
104104
105105 其他参数传入方式,基本就是参考`config.yaml`,关键字之间用点分割,直接写就可以了。例如:
106- ```python linenums="1"
107- {
108- "Global.with_openvino": True,
109- "Global.use_det": True,
110- "EngineConfig.torch.use_cuda", True, # 使用torch GPU版推理
111- "EngineConfig.torch.gpu_id": 1, # 指定GPU id
112- }
113- ```
106+
107+ <div class="grid" markdown>
108+
109+ === "` config.yaml ` "
110+
111+ ```yaml linenums="1"
112+ Global:
113+ with_openvino: true
114+ use_det: true
115+
116+ EngineConfig:
117+ torch:
118+ use_cuda: true
119+ gpu_id: 0
120+ ```
121+
122+ ``` title="对应参数写法"
123+ ```python linenums="1"
124+ {
125+ "Global.with_openvino": True,
126+ "Global.use_det": True,
127+ "EngineConfig.torch.use_cuda", True, # 使用torch GPU版推理
128+ "EngineConfig.torch.gpu_id": 1, # 指定GPU id
129+ }
130+ ```
131+
132+ ```
133+ </div>
114134
115135#### 输出
116136
You can’t perform that action at this time.
0 commit comments