Bash Script for running Roop in Terminal
Prerequesites:
/home/ubuntu/
Installation:
Install Roop
Download the script and copy to /home/ubuntu
Set permissions to make it executable
sudo chmod 755
/opt/run-roop.sh
Add the alias to your shell profile
sudo vi ~/.bashrch 4b. Insert this line `alias run-roop='/opt/run-roop.sh' at the bottom of the file
Quit and relaunch terminal
Test your new command run-roop
Prerequesites:
-Python 3.10.x (Comes with Ubuntu 20.04 LTS) -Pip -Git -FFmpeg (https://mulcas.com/ffmpeg-error-while-loading-shared-libraries-libavdevice-so-58/)
Installation:
cd
/home/ubuntu
git clone https://github.com/s0md3v/roop
sudo apt-get install python3-tk
cd roop
pip install -r requirements.txt
Installing cuda acceleration
pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.15.1 wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb sudo dpkg -i cuda-keyring_1.0-1_all.deb sudo apt-get update sudo apt-get -y install cuda
Setting up folder structure
mkdir /home/ubuntu/source # this is where your source file and target file go mkdir /home/ubuntu/outputs # this is where the renders go