DeepFaceLab/nnlib/__init__.py
Colombo fe58459f36 added FacesetRelighter:
Synthesize new faces from existing ones by relighting them using DeepPortraitRelighter network.
With the relighted faces neural network will better reproduce face shadows.

Therefore you can synthsize shadowed faces from fully lit faceset.
https://i.imgur.com/wxcmQoi.jpg

as a result, better fakes on dark faces:
https://i.imgur.com/5xXIbz5.jpg

in OpenCL build Relighter runs on CPU,

install pytorch directly via pip install, look at requirements
2019-11-11 11:42:52 +04:00

5 lines
172 B
Python

from .nnlib import nnlib
from .FUNIT import FUNIT
from .TernausNet import TernausNet
from .VGGFace import VGGFace
from .DeepPortraitRelighting import DeepPortraitRelighting