From 7ca0245f911c83d3a53a2aa9438a18fa51e84032 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Thu, 10 Sep 2020 09:30:36 +0000 Subject: [PATCH] bug fix --- python/examples/blazeface/test_client.py | 1 + python/paddle_serving_app/reader/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/examples/blazeface/test_client.py b/python/examples/blazeface/test_client.py index 27eb185e..5e22cb86 100644 --- a/python/examples/blazeface/test_client.py +++ b/python/examples/blazeface/test_client.py @@ -16,6 +16,7 @@ from paddle_serving_client import Client from paddle_serving_app.reader import * import sys import numpy as np +from paddle_serving_app.reader import BlazeFacePostprocess preprocess = Sequential([ File2Image(), diff --git a/python/paddle_serving_app/reader/__init__.py b/python/paddle_serving_app/reader/__init__.py index e9fd3154..05b53fb6 100644 --- a/python/paddle_serving_app/reader/__init__.py +++ b/python/paddle_serving_app/reader/__init__.py @@ -14,7 +14,7 @@ from .chinese_bert_reader import ChineseBertReader from .image_reader import ImageReader, File2Image, URL2Image, Sequential, Normalize, Base64ToImage from .image_reader import CenterCrop, Resize, Transpose, Div, RGB2BGR, BGR2RGB, ResizeByFactor -from .image_reader import RCNNPostprocess, SegPostprocess, PadStride +from .image_reader import RCNNPostprocess, SegPostprocess, PadStride, BlazeFacePostprocess from .image_reader import DBPostProcess, FilterBoxes, GetRotateCropImage, SortedBoxes from .lac_reader import LACReader from .senta_reader import SentaReader -- GitLab