From 8b499c3769544337c2939607c945732258c36628 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Tue, 28 Jul 2020 13:58:14 +0800 Subject: [PATCH] move import to the front --- ppocr/utils/utility.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ppocr/utils/utility.py b/ppocr/utils/utility.py index a196e149..e27dd1d8 100755 --- a/ppocr/utils/utility.py +++ b/ppocr/utils/utility.py @@ -16,6 +16,7 @@ import logging import os import imghdr import cv2 +from paddle import fluid def initial_logger(): @@ -90,9 +91,6 @@ def check_and_read_gif(img_path): return None, False -from paddle import fluid - - def create_multi_devices_program(program, loss_var_name): build_strategy = fluid.BuildStrategy() build_strategy.memory_optimize = False -- GitLab