Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
161a47a6
Unverified
Commit
161a47a6
authored
Dec 15, 2020
by
dyning
Committed by
GitHub
Dec 15, 2020
Browse files
Update README_ch.md
parent
a3573c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
StyleText/README_ch.md
StyleText/README_ch.md
+2
-7
No files found.
StyleText/README_ch.md
View file @
161a47a6
...
...
@@ -89,6 +89,8 @@ python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_
1.
在
`configs/dataset_config.yml`
中配置目标场景风格图像和语料的路径,具体如下:
*
`Global`
:
*
`output_dir:`
:保存合成数据的目录。
*
`StyleSampler`
:
*
`image_home`
:风格图片目录;
*
`label_file`
:风格图片路径列表文件,如果所用数据集有label,则label_file为label文件路径;
...
...
@@ -112,13 +114,6 @@ python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_
python
-m
tools.synth_dataset
-c
configs/dataset_config.yml
```
3.
如果您想使用并行方式来快速合成数据,可以通过启动多个进程,在启动时需要指定不同的
`tag`
(
`-t`
),如下所示:
```
bash
python3
-m
tools.synth_dataset
-t
0
-c
configs/dataset_config.yml
python3
-m
tools.synth_dataset
-t
1
-c
configs/dataset_config.yml
```
<a
name=
"应用案例"
></a>
### 四、应用案例
下面以金属表面英文数字识别和通用韩语识别两个场景为例,说明使用StyleText合成数据,来提升文本识别效果的实际案例。下图给出了一些真实场景图像和合成图像的示例:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment