Skip to content

Commit

Permalink
Merge pull request #1752 from ShiningZhang/develop
Browse files Browse the repository at this point in the history
relocate import av in pptsn_reader
  • Loading branch information
ShiningZhang authored Apr 20, 2022
2 parents bb9dd54 + 5664b7e commit 53cce1d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/paddle_serving_app/reader/pptsn_reader.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 53cce1d

Please sign in to comment.