提交 5e2cbb70 编写于 作者: C chenjian

fix according to review

上级 d880de8b
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
- ### 应用效果展示 - ### 应用效果展示
- 样例结果示例: - 样例结果示例:
<p align="center"> <p align="center">
<img src="https://user-images.githubusercontent.com/22424850/145003964-6d6572e0-3103-4898-a738-eb6c61c90be4.jpg" width = "30%" hspace='10'/> <img src="https://user-images.githubusercontent.com/22424850/157190651-595b6964-97c5-4b0b-ac0a-c30c8520a972.png" width = "30%" hspace='10'/>
<br /> <br />
输入内容图形 输入内容图形
<br /> <br />
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<br /> <br />
输入妆容图形 输入妆容图形
<br /> <br />
<img src="https://user-images.githubusercontent.com/22424850/145003965-288d56f9-49a2-43cb-8647-4a112a8e0dfb.png" width = "30%" hspace='10'/> <img src="https://user-images.githubusercontent.com/22424850/157190800-b1dd79d4-0eca-4b36-b091-6fcd2c00dcf6.png" width = "30%" hspace='10'/>
<br /> <br />
输出图像 输出图像
<br /> <br />
......
...@@ -11,23 +11,21 @@ ...@@ -11,23 +11,21 @@
# 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 argparse
import os import os
import sys import sys
import argparse
from pathlib import Path from pathlib import Path
from PIL import Image
import numpy as np import numpy as np
import paddle import paddle
import paddle.vision.transforms as T import paddle.vision.transforms as T
from paddle.utils.download import get_weights_path_from_url
import ppgan.faceutils as futils import ppgan.faceutils as futils
from ppgan.utils.options import parse_args from paddle.utils.download import get_weights_path_from_url
from PIL import Image
from ppgan.models.builder import build_model
from ppgan.utils.config import get_config from ppgan.utils.config import get_config
from ppgan.utils.filesystem import load from ppgan.utils.filesystem import load
from ppgan.models.builder import build_model from ppgan.utils.options import parse_args
from ppgan.utils.preprocess import * from ppgan.utils.preprocess import *
......
...@@ -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 PSGANPredictor from .model import PSGANPredictor
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(name="psgan", type="CV/gan", author="paddlepaddle", author_email="", summary="", version="1.0.0") @moduleinfo(name="psgan", type="CV/gan", author="paddlepaddle", author_email="", summary="", version="1.0.0")
......
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.
先完成此消息的编辑!
想要评论请 注册