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
d219ad40
Commit
d219ad40
authored
Dec 15, 2020
by
weishengyu
Browse files
dbg
parent
f03dcd60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
doc/doc_ch/style_text_rec.md
doc/doc_ch/style_text_rec.md
+1
-1
style_text_rec/tools/synth_image.py
style_text_rec/tools/synth_image.py
+1
-1
style_text_rec/utils/config.py
style_text_rec/utils/config.py
+1
-1
No files found.
doc/doc_ch/style_text_rec.md
View file @
d219ad40
...
@@ -76,7 +76,7 @@ python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_
...
@@ -76,7 +76,7 @@ python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_
首先,需要风格图片作为合成图片的参考依据,这些数据可以是用作训练OCR识别模型的数据集。本例中使用带有标注文件的数据集作为风格图片.
首先,需要风格图片作为合成图片的参考依据,这些数据可以是用作训练OCR识别模型的数据集。本例中使用带有标注文件的数据集作为风格图片.
1.
在
`configs/dataset_config.yml`
中配置输入数据路径。
1.
在
`configs/dataset_config.yml`
中配置输入数据路径。
*
`StyleSampler
l
`
:
*
`StyleSampler`
:
*
`method`
:使用的风格图片采样方法;
*
`method`
:使用的风格图片采样方法;
*
`image_home`
:风格图片目录;
*
`image_home`
:风格图片目录;
*
`label_file`
:风格图片路径列表文件,如果所用数据集有label,则label_file为label文件路径;
*
`label_file`
:风格图片路径列表文件,如果所用数据集有label,则label_file为label文件路径;
...
...
style_text_rec/tools/synth_image.py
View file @
d219ad40
...
@@ -15,8 +15,8 @@ import os
...
@@ -15,8 +15,8 @@ import os
import
cv2
import
cv2
import
sys
import
sys
import
glob
import
glob
from
argparse
import
ArgumentParser
,
RawDescriptionHelpFormatter
from
utils.config
import
ArgsParser
from
engine.synthesisers
import
ImageSynthesiser
from
engine.synthesisers
import
ImageSynthesiser
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
...
...
style_text_rec/utils/config.py
View file @
d219ad40
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
# limitations under the License.
# limitations under the License.
import
yaml
import
yaml
import
os
import
os
from
argparse
import
ArgumentParser
,
RawDescriptionHelpFormatter
from
utils.
argparse
import
ArgumentParser
,
RawDescriptionHelpFormatter
def
override
(
dl
,
ks
,
v
):
def
override
(
dl
,
ks
,
v
):
...
...
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