-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathinstall_directml_windows.cmd
More file actions
15 lines (15 loc) · 983 Bytes
/
Copy pathinstall_directml_windows.cmd
File metadata and controls
15 lines (15 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
python -m pip install virtualenv
python -m virtualenv venv
call venv\scripts\activate.bat
curl --location --remote-header-name --remote-name https://github.com/RichardErkhov/FastFaceSwap/releases/download/model/inswapper_128.onnx
curl --location --remote-header-name --remote-name https://github.com/RichardErkhov/FastFaceSwap/releases/download/model/GFPGANv1.4.pth
curl --location --remote-header-name --remote-name https://github.com/RichardErkhov/FastFaceSwap/releases/download/model/complex_256_v7_stage3_12999.h5
curl --location --remote-header-name --remote-name https://github.com/RichardErkhov/FastFaceSwap/releases/download/model/GFPGANv1.4.onnx
pip install torch-directml
pip install -r requirements.txt
pip install tensorflow-directml-plugin
pip uninstall onnxruntime-gpu onnxruntime -q -y
pip install onnxruntime-directml
pip install protobuf==3.20.2
pip uninstall opencv-python opencv-headless-python opencv-contrib-python -q -y
pip install opencv-python