update README.md
This commit is contained in:
@@ -60,6 +60,8 @@ python=3.10
|
|||||||
python inference.py -img "/path/to/image.{jpg,png}"
|
python inference.py -img "/path/to/image.{jpg,png}"
|
||||||
# use --inference-mode option to enable GPU(cuda or mps) inference
|
# use --inference-mode option to enable GPU(cuda or mps) inference
|
||||||
#+e.g. python inference.py -img "./img.jpg" --inference-mode cuda
|
#+e.g. python inference.py -img "./img.jpg" --inference-mode cuda
|
||||||
|
# use -mix option to enable mixed text and formula recognition
|
||||||
|
#+e.g. python inferene.py -img "./img.jpg" --mix
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
|
|||||||
@@ -58,9 +58,11 @@ python=3.10
|
|||||||
4. 进入 `TexTeller/src`目录,在终端运行以下命令进行推理:
|
4. 进入 `TexTeller/src`目录,在终端运行以下命令进行推理:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python inference.py -img "/path/to/image.{jpg,png}"
|
python inference.py -img "/path/to/image.{jpg,png}"
|
||||||
# use --inference-mode option to enable GPU(cuda or mps) inference
|
# use --inference-mode option to enable GPU(cuda or mps) inference
|
||||||
#+e.g. python inference.py -img "./img.jpg" --inference-mode cuda
|
#+e.g. python inference.py -img "./img.jpg" --inference-mode cuda
|
||||||
|
# use -mix option to enable mixed text and formula recognition
|
||||||
|
#+e.g. python inferene.py -img "./img.jpg" --mix
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
|
|||||||
Reference in New Issue
Block a user