diff --git a/paddleocr.py b/paddleocr.py index 65eff3b2332c394b87b0ff04b40f753800ab738c..f19d1defee217a8d3dc0653e6b8fd1713cb389fa 100644 --- a/paddleocr.py +++ b/paddleocr.py @@ -398,7 +398,7 @@ class PPStructure(OCRSystem): def __init__(self, **kwargs): params = parse_args(mMain=False) params.__dict__.update(**kwargs) - assert params.structure_version in SUPPORT_STRUCTURE_MODEL_VERSION, "ocr_version must in {}, but get {}".format( + assert params.structure_version in SUPPORT_STRUCTURE_MODEL_VERSION, "structure_version must in {}, but get {}".format( SUPPORT_STRUCTURE_MODEL_VERSION, params.structure_version) params.use_gpu = check_gpu(params.use_gpu)