From cb02bc43138588f916eb9e38bc7e9c751c6b38a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E6=B4=8B=E4=B8=89=E6=B4=8B?= <1258009915@qq.com> Date: Sun, 21 Apr 2024 16:13:45 +0000 Subject: [PATCH] update README.md --- README.md | 2 ++ assets/README_zh.md | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb2b5a2..72f00b5 100644 --- a/README.md +++ b/README.md @@ -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] diff --git a/assets/README_zh.md b/assets/README_zh.md index 0f4b560..c0243fd 100644 --- a/assets/README_zh.md +++ b/assets/README_zh.md @@ -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]