提交 ec35dd47 编写于 作者: B breezedeus

fix imports

上级 4f58642d
......@@ -21,7 +21,7 @@ import mxnet as mx
import numpy as np
from PIL import Image
from cnocr import MODEL_VERSION, AVAILABLE_MODELS
from cnocr.consts import MODEL_VERSION, AVAILABLE_MODELS
from cnocr.hyperparams.cn_hyperparams import CnHyperparams as Hyperparams
from cnocr.fit.lstm import init_states
from cnocr.fit.ctc_metrics import CtcMetrics
......
......@@ -177,7 +177,7 @@ def test_gray_aug(img_fp, expected):
def test_cand_alphabet():
from cnocr.consts import NUMBERS
from cnocr import NUMBERS
img_fp = os.path.join(example_dir, 'hybrid.png')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册