diff --git a/tools/export_model.py b/tools/export_model.py index 7630a77edccc582b07e01f7e585399c65bfc046c..08432a58f3f04a587451e4281560bbddaa5287a2 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