python-face-relighting icon indicating copy to clipboard operation
python-face-relighting copied to clipboard

A python implementation of portrait lighting transfer using a mass transport approach.

Results 2 python-face-relighting issues
Sort by recently updated
recently updated
newest added

Hi, @pengbo-learn 我最近也有打算复现这篇论文,但发现复现的结果有点问题。在您这个repo下,我发现您与原论文中的一些实现似乎不太一样: 原论文中是使用color, position, normal 先渲染图片后,使用poisson对非脸部区域做了一个补全,然后三个渲染的结果concat在一块后,使用pdf transfer,得到relighting后的图片。 但您这里的实现只是用了 3d mesh上的点的信息做 pdf tranfer, 输出color信息后再渲染到原图像上。我尝试使用3ddfa来代替您的使用的prnet,但发现结果并不太满意,只能够做到迁移整体的全局颜色,而无法做到局部的光照改变。 我也尝试将实现的严格按照论文中的说法实现,但效果还是与之前一样。 不知道您对这样的现象有没有什么建议?下图我是自己复现的结果 ![image](https://user-images.githubusercontent.com/10545746/71779921-9797f500-2ff6-11ea-91ea-309463eaefaf.png)

![portrait_o2](https://user-images.githubusercontent.com/50562084/76289623-7c8e7d80-62e4-11ea-91c7-eadce9b4f495.jpg) ![portrait_o3](https://user-images.githubusercontent.com/50562084/76289628-80ba9b00-62e4-11ea-83c2-963428a9fe1b.jpg) ![portrait_o4](https://user-images.githubusercontent.com/50562084/76289634-83b58b80-62e4-11ea-80a5-bb8698426b99.jpg) ![portrait_o6](https://user-images.githubusercontent.com/50562084/76289651-8dd78a00-62e4-11ea-85ee-9745808f7026.jpg) My test results are as shown in the figure. It feels like the value overflows. How can I solve this problem?Thanks!