PaddlePaddle / PaddleGAN

PaddlePaddle GAN library, including lots of interesting applications like First-Order motion transfer, Wav2Lip, picture repair, image editing, photo2cartoon, image style transfer, GPEN, and so on.
Apache License 2.0
7.86k stars 1.25k forks source link

人脸增强效果显示不对,偏黄色,没有起到增强效果 #718

Open gg22mm opened 1 year ago

gg22mm commented 1 year ago

人脸增强效果显示不对,偏黄色,没有起到增强效果,如下代码:

cpu方式运行:

人脸增强 -

import cv2 import paddle from ppgan.faceutils.face_enhancement import FaceEnhancement

faceenhancer = FaceEnhancement() img = cv2.imread('1.jpg') img = faceenhancer.enhance_from_image(img) print(img) cv2.imwrite('rlzq.jpg', img) #保存原图

输入原图:

1

输入出原图,没有增强效果: rlzq

LokeZhou commented 7 months ago

可以试试我们新的repo : https://github.com/PaddlePaddle/PaddleMIX/tree/develop/ppdiffusers