Upload 3 files
Browse files- installer/installer.py +1 -1
- installer/macOSinstaller.sh +73 -0
- installer/windows_run.bat +3 -7
installer/installer.py
CHANGED
|
@@ -35,7 +35,7 @@ def install_dependencies():
|
|
| 35 |
run_cmd("conda install -y -k git")
|
| 36 |
run_cmd("git clone https://github.com/C0untFloyd/roop-unleashed.git")
|
| 37 |
os.chdir(MY_PATH)
|
| 38 |
-
run_cmd("git checkout
|
| 39 |
# Installs dependencies from requirements.txt
|
| 40 |
run_cmd("python -m pip install -r requirements.txt")
|
| 41 |
|
|
|
|
| 35 |
run_cmd("conda install -y -k git")
|
| 36 |
run_cmd("git clone https://github.com/C0untFloyd/roop-unleashed.git")
|
| 37 |
os.chdir(MY_PATH)
|
| 38 |
+
run_cmd("git checkout 5bfafdc97a0c47b46ec83e6530a57399aaad75d7")
|
| 39 |
# Installs dependencies from requirements.txt
|
| 40 |
run_cmd("python -m pip install -r requirements.txt")
|
| 41 |
|
installer/macOSinstaller.sh
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# This script checks and installs all dependencies which are needed to run roop-unleashed. After that, it clones the repo.
|
| 4 |
+
# Execute this easily with /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/PJF16/roop-unleashed/master/installer/macOSinstaller.sh)
|
| 5 |
+
|
| 6 |
+
# Function to check if a command exists
|
| 7 |
+
command_exists() {
|
| 8 |
+
command -v "$1" >/dev/null 2>&1
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
echo "Starting check and installation process of dependencies for roop-unleashed"
|
| 12 |
+
|
| 13 |
+
# Check if Homebrew is installed
|
| 14 |
+
if ! command_exists brew; then
|
| 15 |
+
echo "Homebrew is not installed. Starting installation..."
|
| 16 |
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
| 17 |
+
else
|
| 18 |
+
echo "Homebrew is already installed."
|
| 19 |
+
fi
|
| 20 |
+
|
| 21 |
+
# Update Homebrew
|
| 22 |
+
echo "Updating Homebrew..."
|
| 23 |
+
brew update
|
| 24 |
+
|
| 25 |
+
# Check if Python 3.11 is installed
|
| 26 |
+
if brew list --versions [email protected] >/dev/null; then
|
| 27 |
+
echo "Python 3.11 is already installed."
|
| 28 |
+
else
|
| 29 |
+
echo "Python 3.11 is not installed. Installing it now..."
|
| 30 |
+
brew install [email protected]
|
| 31 |
+
fi
|
| 32 |
+
|
| 33 |
+
# Check if [email protected] is installed
|
| 34 |
+
if brew list --versions [email protected] >/dev/null; then
|
| 35 |
+
echo "[email protected] is already installed."
|
| 36 |
+
else
|
| 37 |
+
echo "[email protected] is not installed. Installing it now..."
|
| 38 |
+
brew install [email protected]
|
| 39 |
+
fi
|
| 40 |
+
|
| 41 |
+
# Check if ffmpeg is installed
|
| 42 |
+
if command_exists ffmpeg; then
|
| 43 |
+
echo "ffmpeg is already installed."
|
| 44 |
+
else
|
| 45 |
+
echo "ffmpeg is not installed. Installing it now..."
|
| 46 |
+
brew install ffmpeg
|
| 47 |
+
fi
|
| 48 |
+
|
| 49 |
+
# Check if git is installed
|
| 50 |
+
if command_exists git; then
|
| 51 |
+
echo "git is already installed."
|
| 52 |
+
else
|
| 53 |
+
echo "git is not installed. Installing it now..."
|
| 54 |
+
brew install git
|
| 55 |
+
fi
|
| 56 |
+
|
| 57 |
+
# Clone the repository
|
| 58 |
+
REPO_URL="https://github.com/C0untFloyd/roop-unleashed.git"
|
| 59 |
+
REPO_NAME="roop-unleashed"
|
| 60 |
+
|
| 61 |
+
echo "Cloning the repository $REPO_URL..."
|
| 62 |
+
git clone $REPO_URL
|
| 63 |
+
|
| 64 |
+
# Check if the repository was cloned successfully
|
| 65 |
+
if [ -d "$REPO_NAME" ]; then
|
| 66 |
+
echo "Repository cloned successfully. Changing into directory $REPO_NAME..."
|
| 67 |
+
cd "$REPO_NAME"
|
| 68 |
+
else
|
| 69 |
+
echo "Failed to clone the repository."
|
| 70 |
+
fi
|
| 71 |
+
|
| 72 |
+
echo "Check and installation process completed."
|
| 73 |
+
|
installer/windows_run.bat
CHANGED
|
@@ -14,7 +14,7 @@ set INSTALL_DIR=%cd%\installer_files
|
|
| 14 |
set CONDA_ROOT_PREFIX=%cd%\installer_files\conda
|
| 15 |
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
| 16 |
set MINICONDA_DOWNLOAD_URL=https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
|
| 17 |
-
set FFMPEG_DOWNLOAD_URL=https://github.com/GyanD/codexffmpeg/releases/download/
|
| 18 |
set INSTALL_FFMPEG_DIR=%cd%\installer_files\ffmpeg
|
| 19 |
set INSIGHTFACE_PACKAGE_URL=https://github.com/C0untFloyd/roop-unleashed/releases/download/3.6.6/insightface-0.7.3-cp310-cp310-win_amd64.whl
|
| 20 |
set INSIGHTFACE_PACKAGE_PATH=%INSTALL_DIR%\insightface-0.7.3-cp310-cp310-win_amd64.whl
|
|
@@ -70,12 +70,8 @@ if "%ffmpeg_exists%" == "F" (
|
|
| 70 |
echo Downloading ffmpeg from %FFMPEG_DOWNLOAD_URL% to %INSTALL_DIR%
|
| 71 |
call curl -Lk "%FFMPEG_DOWNLOAD_URL%" > "%INSTALL_DIR%\ffmpeg.zip" || ( echo. && echo ffmpeg failed to download. && goto end )
|
| 72 |
call powershell -command "Expand-Archive -Force '%INSTALL_DIR%\ffmpeg.zip' '%INSTALL_DIR%\'"
|
| 73 |
-
cd "
|
| 74 |
-
|
| 75 |
-
for /f "tokens=*" %%f in ('dir /s /b /ad "ffmpeg\*"') do (
|
| 76 |
-
ren "%%f" "ffmpeg"
|
| 77 |
-
)
|
| 78 |
-
endlocal
|
| 79 |
setx PATH "%INSTALL_FFMPEG_DIR%\bin\;%PATH%"
|
| 80 |
echo To use videos, you need to restart roop after this installation.
|
| 81 |
cd ..
|
|
|
|
| 14 |
set CONDA_ROOT_PREFIX=%cd%\installer_files\conda
|
| 15 |
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
| 16 |
set MINICONDA_DOWNLOAD_URL=https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
|
| 17 |
+
set FFMPEG_DOWNLOAD_URL=https://github.com/GyanD/codexffmpeg/releases/download/7.1/ffmpeg-7.1-essentials_build.zip
|
| 18 |
set INSTALL_FFMPEG_DIR=%cd%\installer_files\ffmpeg
|
| 19 |
set INSIGHTFACE_PACKAGE_URL=https://github.com/C0untFloyd/roop-unleashed/releases/download/3.6.6/insightface-0.7.3-cp310-cp310-win_amd64.whl
|
| 20 |
set INSIGHTFACE_PACKAGE_PATH=%INSTALL_DIR%\insightface-0.7.3-cp310-cp310-win_amd64.whl
|
|
|
|
| 70 |
echo Downloading ffmpeg from %FFMPEG_DOWNLOAD_URL% to %INSTALL_DIR%
|
| 71 |
call curl -Lk "%FFMPEG_DOWNLOAD_URL%" > "%INSTALL_DIR%\ffmpeg.zip" || ( echo. && echo ffmpeg failed to download. && goto end )
|
| 72 |
call powershell -command "Expand-Archive -Force '%INSTALL_DIR%\ffmpeg.zip' '%INSTALL_DIR%\'"
|
| 73 |
+
cd "%INSTALL_DIR%"
|
| 74 |
+
move ffmpeg-* ffmpeg
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
setx PATH "%INSTALL_FFMPEG_DIR%\bin\;%PATH%"
|
| 76 |
echo To use videos, you need to restart roop after this installation.
|
| 77 |
cd ..
|