How to install DeepLiveCam on macOS?

Here is how you can install DeepLiveCam on your macOS. In order to do that, we will be using Anaconda. So for that, go to the Anaconda official website, download it, and install it on your macOS.

Now, go to the DeepLive GitHub page, click on Code, and download all the files. We also need the models to run DeepLiveCam, so download the models GFPGAN and inswapper – and place them inside the models folder of DeepLiveCam. After that, open Terminal and create a Python environment by typing conda create –name DeepLiveCam python=3.10. Activate the environment with conda activate DeepLiveCam. You will see the base name change to DeepLiveCam.

Before installing the requirements, we need to make some changes to the requirements.txt file. Open the DeepLiveCam folder, and edit the requirements.txt file to set Torch to 2.2.2 and TorchVision to 0.17.2. Now, on the Terminal, navigate to the DeepLiveCam folder with cd Desktop and cd Deep-Live-Cam-main, and then install dependencies with pip install -r requirements.txt. After that, install the ONNX Runtime using pip install onnxruntime and FFmpeg with conda install ffmpeg.

After everything has been installed, type python run.py to run DeepLiveCam. It will download additional models required to run the application. You can now select a face image, choose your camera, and click on Live to see how DeepLiveCam works.

To reopen DeepLiveCam later, simply open the folder in Terminal, activate the environment, and run python run.py again. We hope this video was useful. Thank you very much.

STEPS:

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

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

Install all Dependencies
1. cd To_Your_Folder
2. pip install -r requirements.txt (change Torch to 2.2.2 and TorchVision to 0.17.2.)
3. pip install onnxruntime
4. conda install ffmpeg

Run the application
1. python run.py






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 :)