diff --git a/StyleText/README.md b/StyleText/README.md index f978f43875f3994c7016fbf6cff1a1c0f2de4588..5262b505c32913fbf8151b1402c61b9570830409 100644 --- a/StyleText/README.md +++ b/StyleText/README.md @@ -119,7 +119,7 @@ In actual application scenarios, it is often necessary to synthesize pictures in * `corpus_file`: Filepath of the corpus. Corpus file should be a text file which will be split by line-endings('\n'). Corpus generator samples one line each time. -Example of corpus file: +Example of corpus file: ``` PaddleOCR 飞桨文字识别 @@ -136,7 +136,7 @@ We provide a general dataset containing Chinese, English and Korean (50,000 imag 2. You can run the following command to start synthesis task: ``` bash - python -m tools.synth_dataset.py -c configs/dataset_config.yml + python3 -m tools.synth_dataset.py -c configs/dataset_config.yml ``` diff --git a/StyleText/README_ch.md b/StyleText/README_ch.md index a8ab933bd38792bcd6aecd76c85fc3fd1f5f204f..cce136c04656d828c461fb3c619d14a35d1cb9cf 100644 --- a/StyleText/README_ch.md +++ b/StyleText/README_ch.md @@ -124,7 +124,7 @@ python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_ 2. 运行`tools/synth_dataset`合成数据: ``` bash - python -m tools.synth_dataset -c configs/dataset_config.yml + python3 -m tools.synth_dataset -c configs/dataset_config.yml ```