提交 aa49f75b 编写于 作者: C chenjian

fix dependency order

上级 2100df8b
...@@ -11,17 +11,16 @@ ...@@ -11,17 +11,16 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import os
from PIL import Image, ImageOps
import cv2 import cv2
import numpy as np import numpy as np
import os
import paddle import paddle
from PIL import Image
from PIL import ImageOps
from ppgan.models.generators import SPADEGenerator from ppgan.models.generators import SPADEGenerator
from ppgan.utils.photopen import data_onehot_pro
from ppgan.utils.filesystem import load from ppgan.utils.filesystem import load
from ppgan.utils.photopen import data_onehot_pro
class PhotoPenPredictor: class PhotoPenPredictor:
......
...@@ -11,22 +11,24 @@ ...@@ -11,22 +11,24 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import os
import argparse import argparse
import copy import copy
import os
import paddle
import paddlehub as hub
from paddlehub.module.module import moduleinfo, runnable, serving
import numpy as np
import cv2 import cv2
from skimage.io import imread import numpy as np
from skimage.transform import rescale, resize import paddle
from ppgan.utils.config import get_config from ppgan.utils.config import get_config
from skimage.io import imread
from skimage.transform import rescale
from skimage.transform import resize
import paddlehub as hub
from .model import PhotoPenPredictor from .model import PhotoPenPredictor
from .util import base64_to_cv2 from .util import base64_to_cv2
from paddlehub.module.module import moduleinfo
from paddlehub.module.module import runnable
from paddlehub.module.module import serving
@moduleinfo( @moduleinfo(
......
import base64 import base64
import cv2 import cv2
import numpy as np import numpy as np
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册