Update setup_deep_live_cam.bat

added option to detect if directory exist
This commit is contained in:
Kenneth Estanislao 2024-08-10 00:33:48 +08:00 committed by GitHub
parent f48b1b4620
commit f03f5277f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,8 +39,18 @@ echo Installing Visual Studio 2022 Runtimes...
winget install --id Microsoft.VC++2015-2022Redist-x64 -e --source winget
:: 2. Clone Repository
echo Cloning the repository...
git clone https://github.com/hacksider/Deep-Live-Cam.git
if exist Deep-Live-Cam (
echo Deep-Live-Cam directory already exists.
set /p overwrite="Do you want to overwrite? (Y/N): "
if /i "%overwrite%"=="Y" (
rmdir /s /q Deep-Live-Cam
git clone https://github.com/hacksider/Deep-Live-Cam.git
) else (
echo Skipping clone, using existing directory.
)
) else (
git clone https://github.com/hacksider/Deep-Live-Cam.git
)
cd Deep-Live-Cam
:: 3. Download Models