提交 d219ad40 编写于 作者: W weishengyu

dbg

上级 f03dcd60
...@@ -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`中配置输入数据路径。
* `StyleSamplerl` * `StyleSampler`
* `method`:使用的风格图片采样方法; * `method`:使用的风格图片采样方法;
* `image_home`:风格图片目录; * `image_home`:风格图片目录;
* `label_file`:风格图片路径列表文件,如果所用数据集有label,则label_file为label文件路径; * `label_file`:风格图片路径列表文件,如果所用数据集有label,则label_file为label文件路径;
......
...@@ -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__))
......
...@@ -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):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册