From ea39083bd46df252a9faaf35f646dc57aef24d34 Mon Sep 17 00:00:00 2001 From: YukSing12 Date: Thu, 10 Dec 2020 14:40:27 +0800 Subject: [PATCH] Fix bug --- tools/export_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/export_model.py b/tools/export_model.py index 7630a77e..08432a58 100644 --- a/tools/export_model.py +++ b/tools/export_model.py @@ -15,7 +15,7 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -from ppocr.utils.utility import enable_static_mode + import os import sys @@ -39,6 +39,7 @@ set_paddle_flags( import program from paddle import fluid +from ppocr.utils.utility import enable_static_mode from ppocr.utils.utility import initial_logger logger = initial_logger() from ppocr.utils.save_load import init_model -- GitLab