This guide explains how to build iRoopDeepFaceCam into a standalone .exe application for Windows.
- Python 3.9+ installed and added to PATH
- pip package manager
- Git (to clone the repository)
- FFmpeg installed and added to system PATH
- CUDA Toolkit 11.8 (optional, for GPU support)
The easiest way to build is using the batch script:
build_exe.batThis will:
- Check prerequisites
- Install PyInstaller
- Install project dependencies
- Build the executable
- Prepare the distribution folder
pip install -r requirements.txt
pip install pyinstallerUsing the spec file (recommended):
pyinstaller iRoopDeepFaceCam.spec --noconfirmUsing the build script:
python build_exe.pyBuild script options:
--clean- Remove previous builds first--onefile- Build a single .exe file (slower startup)--noconsole- Hide the console window (release mode)--no-spec- Build without spec file, use CLI arguments
After building, copy your model files to the dist/iRoopDeepFaceCam/models/ folder:
-
inswapper_128_fp16.onnx (required)
- Download from: https://huggingface.co/ivideogameboss/iroopdeepfacecam
-
GFPGANv1.4.pth (optional, for face enhancement)
FFmpeg must be installed separately and available in your system PATH:
- Download from: https://ffmpeg.org/download.html
- Or install via Chocolatey:
choco install ffmpeg
After a successful build, you'll find:
dist/
iRoopDeepFaceCam/
iRoopDeepFaceCam.exe # Main executable
Launch_iRoopDeepFaceCam.bat # Quick launcher
Launch_GPU_CUDA.bat # GPU mode launcher
models/ # Place model files here
instructions.txt
FireFox_Face_Swap_Ext/ # Browser extension
_internal/ # PyInstaller bundled dependencies
... (DLL files, etc.)
Default (CPU mode):
iRoopDeepFaceCam.exe
GPU mode (NVIDIA CUDA):
iRoopDeepFaceCam.exe --execution-provider cuda --execution-threads 5
Or use the provided launcher batch files.
Make sure all dependencies are installed:
pip install -r requirements.txtInstall FFmpeg and add it to your system PATH.
Place model files in the models/ folder next to the executable.
- Ensure NVIDIA drivers are up to date
- Install CUDA Toolkit 11.8
- Verify with:
python -c "import torch; print(torch.cuda.is_available())"
Try running from command prompt to see error messages:
cd dist\iRoopDeepFaceCam
iRoopDeepFaceCam.exeThe executable is large (~2-4 GB) because it bundles PyTorch, TensorFlow, ONNX Runtime, and other ML libraries. This is expected for a deep learning application.