params.py 509 Bytes
Newer Older
WenmuZhou's avatar
WenmuZhou committed
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
MissPenguin's avatar
MissPenguin committed
15
    cfg.cls_model_dir = "./inference/ch_ppocr_mobile_v2.0_cls_infer/"
WenmuZhou's avatar
WenmuZhou committed
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
WenmuZhou's avatar
WenmuZhou committed
22
    cfg.use_tensorrt = False
WenmuZhou's avatar
WenmuZhou committed
23
24

    return cfg