提交 f7dbf2b7 编写于 作者: W wangjiawei04

CLOSE data augment if use pdserving

上级 3a347ebc
...@@ -20,10 +20,13 @@ import sys ...@@ -20,10 +20,13 @@ import sys
from ppocr.utils.utility import initial_logger, check_and_read_gif from ppocr.utils.utility import initial_logger, check_and_read_gif
logger = initial_logger() logger = initial_logger()
from .data_augment import AugmentData import tools.infer.utility as utility
from .random_crop_data import RandomCropData args = utility.parse_args()
from .make_shrink_map import MakeShrinkMap if args.use_serving is False:
from .make_border_map import MakeBorderMap from .data_augment import AugmentData
from .random_crop_data import RandomCropData
from .make_shrink_map import MakeShrinkMap
from .make_border_map import MakeBorderMap
class DBProcessTrain(object): class DBProcessTrain(object):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册