# 免费制作 DeepFake TikTok

**开始**

点击 [链接](https://zelenka.guru/proxy.php?link=https%3A%2F%2Fcolab.research.google.com%2Fgithub%2Fanothermartz%2FEasy-Wav2Lip%2Fblob%2Fv8.1%2FEasy_Wav2Lip_v8.1.ipynb\&hash=b2733046ff223e41c9ae97f21890c343) 并在右上角点击“连接”。

<figure><img src="https://nztcdn.com/files/5d65d9b5-b2b0-4960-9c71-5edc0bfc42f9.webp" alt=""><figcaption></figcaption></figure>

在为你分配到显卡后，开始第一段代码单元。点击此按钮，然后按照截图操作。

<figure><img src="https://telegra.ph/file/40ff592ffe94e7c472347.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://telegra.ph/file/e47c3f9383f3bcad71a5d.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://telegra.ph/file/abd733297533805b24e14.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://telegra.ph/file/3774582fa2544d79f0833.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://telegra.ph/file/a0960f6f8a52452ee3909.png" alt=""><figcaption></figcaption></figure>

完成第2步后，开始添加素材，在我的例子中这是主播 FoxNews：

* <https://nztcdn.com/files/5f38d3af-9289-4ca3-935e-ae13d48062ee.mp4>

视频应为 .mp4 格式，音频为 .wav

一篇教你如何用所需声音生成文本转语音的文章

* [文章](https://zelenka.guru/threads/6282053/)

把你的素材上传到你在单元中挂载的 Google 云端硬盘。

<figure><img src="https://telegra.ph/file/fcab6ed798b1023f04e5f.png" alt=""><figcaption></figcaption></figure>

接着按照截图操作：

<figure><img src="https://telegra.ph/file/905a8edcf8368bc6c5068.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://telegra.ph/file/22e37eb37cbe05744b702.png" alt=""><figcaption></figcaption></figure>

在单元中指定文件路径。

<figure><img src="https://telegra.ph/file/2dedbce573be7494d6ff7.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://telegra.ph/file/f63770eb14e5b462de1f1.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://telegra.ph/file/fd346a5c5fe4df4ed2f6a.png" alt=""><figcaption></figcaption></figure>

> **video - video\_file**

> **audio - vocal\_file**

选择质量：

<figure><img src="https://telegra.ph/file/eb70532c190749812cd9a.png" alt=""><figcaption></figcaption></figure>

建议选择增强（Enhanced）。

选择神经网络的版本。

<figure><img src="https://nztcdn.com/files/56125124-2267-4ee5-91a5-186cc3817ff7.webp" alt=""><figcaption></figcaption></figure>

这个根据个人情况，建议对每个深度模型同时试两个版本，我推荐 Wav2Lip

它们之间的区别：

**Wav2Lip**

**优点：** 更精确的唇同步 + 在无声时会闭合嘴巴

**缺点：** 有时会导致缺少牙齿

**Wav2Lip\_GAN**

**优点：** 看起来更自然 + 保留说话者的原始表情

**缺点：** 唇同步不如前者精确 + 在无声时保持嘴巴与原始更相似。

开始生成深度换脸：

<figure><img src="https://telegra.ph/file/c24cedd90a6281fbfbe62.png" alt=""><figcaption></figcaption></figure>

得到结果后检查是否有任何伪影。如果一切满意，下载生成的结果。

<figure><img src="https://telegra.ph/file/750e1cf2e6985b8b2a0c6.png" alt=""><figcaption></figcaption></figure>

如果仍然存在伪影，特别是下巴问题，例如可见一条生成动作时的边框线，按我下面做的操作。转到这些滑块：

<figure><img src="https://telegra.ph/file/4224e1b3dbd9d0fe3c3ed.png" alt=""><figcaption></figcaption></figure>

将 D 滑块设为 5-10 并查看结果。此操作相当于在面部下方添加了额外像素，这些像素也会被神经网络生成，

> R - 右

> L - 左

> U - 上

> D - 下

你可以调整这些设置，如果人的头型奇怪也能起作用。质量主要取决于你选择的原始视频。应选择人物尽量直视镜头，且不要跳动或抖动的视频。

我得到的结果：

* <https://nztcdn.com/files/c145b3df-bc2d-4365-809a-30e0692323e3.mp4>

**就这些。祝你好运！**
