From d32191eb76126354e7c62d164829159542954842 Mon Sep 17 00:00:00 2001 From: ShiningZhang Date: Tue, 19 Apr 2022 11:27:43 +0800 Subject: [PATCH] relocate import av in pptsn_reader --- python/paddle_serving_app/reader/pptsn_reader.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/paddle_serving_app/reader/pptsn_reader.py b/python/paddle_serving_app/reader/pptsn_reader.py index c74c9db6..beff557a 100644 --- a/python/paddle_serving_app/reader/pptsn_reader.py +++ b/python/paddle_serving_app/reader/pptsn_reader.py @@ -1,20 +1,19 @@ import numpy as np -import av import cv2 import pickle -import decord as de import math import random import os from PIL import Image -import SimpleITK as sitk - try: import cPickle as pickle from cStringIO import StringIO + import av + import decord as de + import SimpleITK as sitk except ImportError: import pickle from io import BytesIO -- GitLab