Open gg22mm opened 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) #保存原图
输入原图:
输入出原图,没有增强效果:
可以试试我们新的repo : https://github.com/PaddlePaddle/PaddleMIX/tree/develop/ppdiffusers
人脸增强效果显示不对,偏黄色,没有起到增强效果,如下代码:
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) #保存原图
输入原图:
输入出原图,没有增强效果: