params.py 509 字节
Newer Older
W
WenmuZhou 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function


class Config(object):
    pass


def read_params():
    cfg = Config()

    #params for text classifier
M
MissPenguin 已提交
15
    cfg.cls_model_dir = "./inference/ch_ppocr_mobile_v2.0_cls_infer/"
W
WenmuZhou 已提交
16 17 18 19 20 21
    cfg.cls_image_shape = "3, 48, 192"
    cfg.label_list = ['0', '180']
    cfg.cls_batch_num = 30
    cfg.cls_thresh = 0.9

    cfg.use_pdserving = False
W
WenmuZhou 已提交
22
    cfg.use_tensorrt = False
W
WenmuZhou 已提交
23 24

    return cfg