iperov / DeepFaceLab

DeepFaceLab is the leading software for creating deepfakes.
GNU General Public License v3.0
46.27k stars 10.38k forks source link

Questions about the param used by the face enhancement model #5701

Open zt706 opened 12 months ago

zt706 commented 12 months ago

Hello, please advise. What is the function of the following code, and what do 0.2 and 1.0 specifically mean?

    param = np.array([0.2])
    param1 = np.array([1.0])
    ...
    x = self.model.run( [ patch_img[None,...], [param], [param1] ] )[0]

https://github.com/iperov/DeepFaceLab/blob/master/facelib/FaceEnhancer.py#L178C12-L178C12