mirror of https://github.com/open-mmlab/mmocr.git
[Docs] Fix missed deployment in en docs and add language switcher to the sidebar (#355)
* fix deployment and add language switcher * change way to switch language and add chinese toc * update zh_CN datasets.md (to be translated)pull/356/head
parent
68df4fbe80
commit
500b687469
|
@ -9,7 +9,7 @@ You can switch between English and Chinese in the lower-left corner of the layou
|
|||
install.md
|
||||
getting_started.md
|
||||
demo.md
|
||||
depolyment.md
|
||||
deployment.md
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
@ -38,6 +38,12 @@ You can switch between English and Chinese in the lower-left corner of the layou
|
|||
|
||||
api.rst
|
||||
|
||||
.. toctree::
|
||||
:caption: Switch Language
|
||||
|
||||
English <https://mmocr.readthedocs.io/en/latest/>
|
||||
简体中文 <https://mmocr.readthedocs.io/zh_CN/latest/>
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
|
|
|
@ -267,22 +267,28 @@ The structure of the text detection dataset directory is organized as follows.
|
|||
|
||||
- For `SynthText`:
|
||||
- Step1: Download `SynthText.zip` from [homepage](https://www.robots.ox.ac.uk/~vgg/data/scenetext/)
|
||||
- Step2: Download [shuffle_labels.txt](https://download.openmmlab.com/mmocr/data/mixture/SynthText/shuffle_labels.txt)
|
||||
- Step3: Download [instances_train.txt](https://download.openmmlab.com/mmocr/data/mixture/SynthText/instances_train.txt)
|
||||
- Step4:
|
||||
- Step2:
|
||||
|
||||
```bash
|
||||
mkdir SynthText && cd SynthText
|
||||
mv /path/to/SynthText.zip .
|
||||
unzip SynthText.zip
|
||||
|
||||
cd SynthText
|
||||
mv SynthText synthtext
|
||||
|
||||
mv /path/to/shuffle_labels.txt .
|
||||
|
||||
# create soft link
|
||||
cd /path/to/mmocr/data/mixture
|
||||
|
||||
ln -s /path/to/SynthText SynthText
|
||||
```
|
||||
- Step3:
|
||||
Generate cropped images and labels:
|
||||
|
||||
```bash
|
||||
cd /path/to/mmocr
|
||||
|
||||
python tools/data/textrecog/synthtext_converter.py data/mixture/SynthText/gt.mat data/mixture/SynthText/ data/mixture/SynthText/synthtext/SynthText_patch_horizontal --n_proc 8
|
||||
```
|
||||
|
||||
- For `SynthAdd`:
|
||||
- Step1: Download `SynthText_Add.zip` from [SynthAdd](https://pan.baidu.com/s/1uV0LtoNmcxbO-0YA7Ch4dg) (code:627x))
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: Model Zoo
|
||||
:caption: 模型库
|
||||
|
||||
modelzoo.md
|
||||
textdet_models.md
|
||||
|
@ -23,21 +23,27 @@
|
|||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: Datasets
|
||||
:caption: 数据集
|
||||
|
||||
datasets.md
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: Notes
|
||||
:caption: 记录
|
||||
|
||||
changelog.md
|
||||
|
||||
.. toctree::
|
||||
:caption: API Reference
|
||||
:caption: API 参考
|
||||
|
||||
api.rst
|
||||
|
||||
.. toctree::
|
||||
:caption: 切换语言
|
||||
|
||||
English <https://mmocr.readthedocs.io/en/latest/>
|
||||
简体中文 <https://mmocr.readthedocs.io/zh_CN/latest/>
|
||||
|
||||
导引
|
||||
==================
|
||||
|
||||
|
|
Loading…
Reference in New Issue