Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
breezedeus committed Sep 23, 2023
1 parent 1d5bc34 commit 1c7d79e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,22 @@ MFD 模型检测图片中包含的数学公式,其中行内的公式检测为
pip install cnstd
```

如果需要使用 ONNX 模型(`model_backend=onnx`),请使用以下命令安装:

* CPU环境使用 ONNX 模型:
```bash
pip install cnstd[ort-cpu]
```
* GPU环境使用 ONNX 模型:
```bash
pip install cnstd[ort-gpu]
```
* 注意:如果当前环境已经安装了 `onnxruntime` 包,请先手动卸载(`pip uninstall onnxruntime`)后再运行上面的命令。

安装速度慢的话,可以指定国内的安装源,如使用豆瓣源:

```bash
pip install cnstd -i https://pypi.doubanio.com/simple
pip install cnstd -i https://mirrors.aliyun.com/pypi/simple
```

【注意】:
Expand Down

0 comments on commit 1c7d79e

Please sign in to comment.