How to install Deep Live Cam | Swap faces | Live Webcam

Here is how you can install deep live cam by hacksider. This app can easily swap faces on videos and even run on a live webcam, and it’s very easy to use.

In order to install this, we will be using Anaconda. For those who do not have Anaconda, go to the Anaconda official website and download it. Once Anaconda is installed, go to the start menu and type Anaconda; you will then find Anaconda Prompt, so open it and create a python environment. After creating the environment, activate the env. We need to download some files, download the models, Github files from the link below. After the download is complete, extract the main DeepLiveCam files to the desktop and, as well, add the models files inside the modesl folder. Then navigate to the folder and install all the files from requirements.txt. You will also need to install ffmpeg.

You might need to install Visual Studio 2022 runtime for Windows. And for those with Nvidia graphics, please install the CUDA from the link below. If you use Nvidia, make sure to uninstall onnxruntime and install the required version. Now, to run the application, simply use python run.py (if no CUDA) or use python run.py –execution-provider cuda for Nvidia Users. To use, select an image and you can use it as a live cam by choosing the webcam and clicking on live. If you want to swap faces on a video, simply choose a target video and then start the process. Please note, these processes might take some time, and it depends on your PC configurations. And if you want to reopen the application, simply open Anaconda Prompt, activate the environment, navigate to the folder, and simply type python run.py (or with cuda).

We really hope this video was useful to you. Thank you very much.

STEPS:

Installing Anaconda
1. Download and Install anaconda (https://www.anaconda.com/)
2. Open Anaconda Prompt

Installing Python 3.10 and Activating
1.conda create –name DeepLiveCam python=3.10
2. conda activate DeepLiveCam

Install all Dependencies
1. cd C:/Your_folder
2. pip install -r requirements.txt
3. conda install ffmpeg

Run the application
1. python run.py

For Nvidia Users only
1. pip uninstall onnxruntime onnxruntime-gpu
2. pip install onnxruntime-gpu==1.16.3
3. python run.py –execution-provider cuda






SUBSCRIBE

SUBSCRIBE

Welcome to Hey, Let's Learn Something!

Please sign up here to receive the latest updates on our blogs, tutorials and download section :)

Thank you for subscribing :)