forked from lllyasviel/Fooocus
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfigure.bat
20 lines (18 loc) · 1.05 KB
/
configure.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off
cd inswapper
git lfs install
git clone https://huggingface.co/spaces/sczhou/CodeFormer
cd ..
python -m venv venv
call .\venv\Scripts\activate
pip install -r requirements_versions.txt
pip install --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
xcopy /E /I /Y inswapper\CodeFormer\CodeFormer\basicsr venv\Lib\site-packages\basicsr
xcopy /E /I /Y inswapper\CodeFormer\CodeFormer\facelib venv\Lib\site-packages\facelib
mkdir inswapper\checkpoints
powershell -Command "& { Invoke-WebRequest -Uri 'https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx' -OutFile '.\inswapper\checkpoints\inswapper_128.onnx' }"
mkdir InstantID\models
mkdir InstantID\models\antelopev2
powershell -Command "& { Invoke-WebRequest -Uri 'https://keeper.mpdl.mpg.de/f/2d58b7fed5a74cb5be83/?dl=1' -OutFile '.\InstantID\models\antelopev2.zip' }"
powershell -Command "Expand-Archive .\InstantID\models\antelopev2.zip .\InstantID\models\antelopev2"
powershell -Command "Remove-Item .\InstantID\models\antelopev2.zip"