Giter VIP home page Giter VIP logo

deepfacelab-runpod's Introduction

DeepFaceLab-Runpod

DeepFaceLab is the leading software for creating deepfakes.

From a fresh Pod:

If you don't have an account yet, follow the link to register and use this beauty.

Create pod from "RunPod Desktop" template (use this link, because they removed the previous option), at least 30GB for volume and container disk sizes, as both will be used to create the environment later.

Click "Connect", "Start Web Terminal" and open a terminal by clicking "Connect to Web Terminal", copy-paste the whole line below, hit enter:

wget https://repo.anaconda.com/miniconda/Miniconda3-py39_23.3.1-0-Linux-x86_64.sh; cd /; sudo chmod 777 /workspace; cd /workspace; git clone https://github.com/DaviSoEditando/DeepFaceLab-Runpod DeepFaceLab_Linux; bash /home/kasm-user/*.sh

Hit the spacebar a few times, answer yes to each question, set install location to /home/kasm-user/miniconda3 (will probably already be), answer yes to the last question and finish the installation.

Quit terminal, open new one - should start with ‘base’, copy-paste the whole line below to create the conda environment that will be used, be patient as it will take a few minutes, hit enter:

cd /home/kasm-user/miniconda3; conda env create -f /workspace/DeepFaceLab_Linux/scripts/environment.yaml; cd /workspace/DeepFaceLab_Linux/scripts/; cp -r /home/kasm-user/miniconda3 /workspace/

Now you can download your model and your videos, just go back to the Runpod page, click on "HTTP Service [Port 6901] Not Ready" which will open a new tab where you will put the login and password:

login:    kasm_user 
password: password

A desktop will open remote and you can download using google chrome and then unzip the zip you downloaded using the command:

unzip /home/kasm-user/Desktop/Downloads/*.zip -d /workspace/DeepFaceLab_Linux/workspace/

Now just open a Terminal and run the scripts of your choice, some examples paths:

Extract imagem from data SRC

cd /workspace/DeepFaceLab_Linux/scripts/; bash 2_extract_image_from_data_src.sh

Extract imagem from data DST

cd /workspace/DeepFaceLab_Linux/scripts/; bash 3_extract_image_from_data_dst.sh

Extract faces from SRC

cd /workspace/DeepFaceLab_Linux/scripts/; bash 4_data_src_extract_faces_S3FD.sh

Extract faces and align from DST

cd /workspace/DeepFaceLab_Linux/scripts/; bash 5_data_dst_extract_faces_S3FD.sh

Train SAEHD

cd /workspace/DeepFaceLab_Linux/scripts/; bash 6_train_SAEHD.sh

Merge SAEHD

cd /workspace/DeepFaceLab_Linux/scripts/; bash 7_merge_SAEHD.sh

Merge to MP4

cd /workspace/DeepFaceLab_Linux/scripts/; bash 8_merged_to_mp4.sh

Restart after Pausing the Pod

After restarting the pod, just use the command below to create a link from the "miniconda3" folder on the system to get back to using DeepFaceLab again:

ln -s /workspace/miniconda3 /home/kasm-user

But only if you still have the Volume with the previous files.

If you have deleted the volume, you will have to do the whole process from the beginning.

Tip

Runpod allows you to create a "Network Volume", in which you can keep the files, both from DeepFaceLab and the miniconda/env installation, that way you are not hostage to the same graphics card, as they tend to get busy quickly, making it very difficult rent again. You will be charged a few cents a month per GB that you have in the generated volume and so far you can only use it in "Secure Cloud" mode.

I got most of these tips from this forum, and spent the night trying to find the causes of the problems that occurred when trying to run the scripts in Runpod.

If you found this tutorial useful, I wouldn't be sad for you to transfer some eth to my wallet.😊

0x0d1F8774a408a3b06DB9aFB75961e5C01D37DE74

Hope this helps!


DeepFaceLab

https://arxiv.org/abs/2005.05535

the leading software for creating deepfakes

More than 95% of deepfake videos are created with DeepFaceLab.

DeepFaceLab is used by such popular youtube channels as

deeptomcruise 1facerussia arnoldschwarzneggar
mariahcareyathome? diepnep mr__heisenberg deepcaprio
VFXChris Ume Sham00k
Collider videos iFake NextFace
Futuring Machine RepresentUS Corridor Crew
DeepFaker DeepFakes in movie
DeepFakeCreator Jarkan

What can I do using DeepFaceLab?

Replace the face

De-age the face

https://www.youtube.com/watch?v=Ddx5B-84ebo

Replace the head

https://www.youtube.com/watch?v=xr5FHd0AdlQ

https://www.youtube.com/watch?v=RTjgkhMugVw

https://www.youtube.com/watch?v=R9f7WD0gKPo

Manipulate politicians lips

(voice replacement is not included!) (also requires a skill in video editors such as Adobe After Effects or Davinci Resolve)

https://www.youtube.com/watch?v=IvY-Abd2FfM

https://www.youtube.com/watch?v=ERQlaJ_czHU

Deepfake native resolution progress

Unfortunately, there is no "make everything ok" button in DeepFaceLab. You should spend time studying the workflow and growing your skills. A skill in programs such as AfterEffects or Davinci Resolve is also desirable.

Mini tutorial

Releases

Windows (magnet link) Last release. Use torrent client to download.
Windows (Mega.nz) Contains new and prev releases.
Windows (yandex.ru) Contains new and prev releases.
Google Colab (github) by @chervonij . You can train fakes for free using Google Colab.
Linux (github) by @nagadit
CentOS Linux (github) May be outdated. By @elemantalcode

Links

Guides and tutorials

DeepFaceLab guide Main guide
Faceset creation guide How to create the right faceset
Google Colab guide Guide how to train the fake on Google Colab
Compositing To achieve the highest quality, compose deepfake manually in video editors such as Davinci Resolve or Adobe AfterEffects
Discussion and suggestions

Supplementary material

Ready to work facesets Celebrity facesets made by community
Pretrained models Pretrained models made by community

Communication groups

Discord Official discord channel. English / Russian.
Telegram group Official telegram group. English / Russian. For anonymous communication. Don't forget to hide your phone number
Русский форум
mrdeepfakes the biggest NSFW English community
reddit r/DeepFakesSFW/ Post your deepfakes there !
reddit r/RUdeepfakes/ Постим русские дипфейки сюда !
QQ群124500433 中文交流QQ群,商务合作找群主
dfldata.cc 中文交流论坛,免费软件教程、模型、人脸数据
deepfaker.xyz 中文学习站(非官方)

Related works

DeepFaceLive Real-time face swap for PC streaming or video calls
neuralchen/SimSwap Swapping face using ONE single photo 一张图免训练换脸
deepfakes/faceswap Something that was before DeepFaceLab and still remains in the past

How I can help the project?

Sponsor deepfake research and DeepFaceLab development.

Donate via Yoomoney
bitcoin:bc1qkhh7h0gwwhxgg6h6gpllfgstkd645fefrd5s6z

Collect facesets

You can collect faceset of any celebrity that can be used in DeepFaceLab and share it in the community

Star this repo

Register github account and push "Star" button.

Meme zone

#deepfacelab #deepfakes #faceswap #face-swap #deep-learning #deeplearning #deep-neural-networks #deepface #deep-face-swap #fakeapp #fake-app #neural-networks #neural-nets #tensorflow #cuda #nvidia

deepfacelab-runpod's People

Contributors

davisoeditando avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

deepfacelab-runpod's Issues

Incomprehensible manual

step1. "Create pod from "RunPod Desktop" template"
How to do it? There is no such option.
@DaviSoEditando
If you make a manual, make it relevant to reality, or DO NOT DO IT AT ALL!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.