diff --git a/python/paddle_serving_app/reader/pptsn_reader.py b/python/paddle_serving_app/reader/pptsn_reader.py index c74c9db6aa1440bab3a163337b3b1c26652210f4..beff557aff18f765d60ffab97c0a842b45224f9f 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