iperov / DeepFaceLab

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

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

Open zt706 opened 1 year ago

zt706 commented 1 year 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