Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relocate import av in pptsn_reader #1752

Merged
merged 2 commits into from
Apr 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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