Local AI Face Swap — Modern web application for swapping faces in photos and videos. All processing happens locally on your machine.
🌐 Language / Язык:
- 🖼️ Photos — Drag & Drop upload with preview
- 🎬 Videos — Swap faces in MP4/MOV/AVI files frame by frame
- 🔍 Automatic face detection via InsightFace
- 🎭 Multi-face swap — replace each detected face with a different target
- 🏠 100% local — no internet required after setup
- 🎨 Modern UI — dark theme, glassmorphism, green accents
- 🌐 Multi-language — Russian and English
faceswapper/
├── frontend/ # React + Vite + Tailwind CSS
├── backend/ # Express + TypeScript REST API
├── ai-service/ # Python FastAPI + InsightFace
└── start.sh # Launch all services with one command
- Node.js 18+ with npm
- Python 3.10+ with pip
- Linux / macOS / Windows (CPU; GPU optional)
cd faceswapper
./start.shThen open http://localhost:5173
# Frontend
cd frontend && npm install && npm run dev
# Backend
cd backend && npm install && npm run dev
# AI Service
cd ai-service
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python src/main.pyPhotos:
- Upload a source photo with faces
- Upload a target face photo for each detected face
- AI replaces faces using InsightFace + inswapper_128.onnx
- Download the result
Videos:
- Upload a source video
- Upload target face(s)
- AI processes each frame and assembles the output video
- Download the result
Frontend: React, TypeScript, Vite, Tailwind CSS, Zustand, TanStack Query, Framer Motion
Backend: Node.js, Express, TypeScript, Multer
AI: Python, FastAPI, InsightFace, ONNX Runtime, OpenCV
- 🖼️ Фотографии — Drag & Drop загрузка с предпросмотром
- 🎬 Видео — Замена лиц в MP4/MOV/AVI файлах покадрово
- 🔍 Автоматическое распознавание лиц через InsightFace
- 🎭 Замена нескольких лиц — каждое лицо на своё
- 🏠 100% локально — не требуется интернет после установки
- 🎨 Современный интерфейс — тёмная тема, glassmorphism, зелёные акценты
- 🌐 Мультиязычность — русский и английский
faceswapper/
├── frontend/ # React + Vite + Tailwind CSS
├── backend/ # Express + TypeScript REST API
├── ai-service/ # Python FastAPI + InsightFace
└── start.sh # Запуск всех сервисов одной командой
- Node.js 18+ с npm
- Python 3.10+ с pip
- Linux / macOS / Windows (CPU; GPU опционально)
cd faceswapper
./start.shЗатем открой http://localhost:5173
# Frontend
cd frontend && npm install && npm run dev
# Backend
cd backend && npm install && npm run dev
# AI Service
cd ai-service
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python src/main.pyФотографии:
- Загрузи фото с лицами
- Загрузи target face для каждого найденного лица
- AI заменяет лица через InsightFace + inswapper_128.onnx
- Скачай результат
Видео:
- Загрузи исходное видео
- Загрузи target face
- AI обрабатывает каждый кадр и собирает выходное видео
- Скачай результат
Frontend: React, TypeScript, Vite, Tailwind CSS, Zustand, TanStack Query, Framer Motion
Backend: Node.js, Express, TypeScript, Multer
AI: Python, FastAPI, InsightFace, ONNX Runtime, OpenCV
MIT
- InsightFace — Face analysis and swapping
- FaceFusion — Inspiration for local face swap