update README.md

This commit is contained in:
三洋三洋
2024-04-21 16:13:45 +00:00
parent 188ab88e07
commit 8fa462b434
2 changed files with 7 additions and 3 deletions

View File

@@ -60,6 +60,8 @@ python=3.10
python inference.py -img "/path/to/image.{jpg,png}"
# use --inference-mode option to enable GPU(cuda or mps) inference
#+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]

View File

@@ -58,9 +58,11 @@ python=3.10
4. 进入 `TexTeller/src`目录,在终端运行以下命令进行推理:
```bash
python inference.py -img "/path/to/image.{jpg,png}"
# use --inference-mode option to enable GPU(cuda or mps) inference
#+e.g. python inference.py -img "./img.jpg" --inference-mode cuda
python inference.py -img "/path/to/image.{jpg,png}"
# use --inference-mode option to enable GPU(cuda or mps) inference
#+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]