Skip to content

iakzs/madurify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Madurify

A Python application with CLI and web interfaces that lets you swap faces in images without using AI!

Features

  • Face detection using dlib
  • Face swapping directly from the python application
  • Web interface with drag-and-drop upload

Requirements

  • Python 3.11+

Installation

  1. Clone the repository:
git clone https://github.com/iakzs/madurify.git
cd madurify
  1. Install dependencies, setup the application:

Quick install & setup (if CMake is installed):

pip install -r requirements.txt && pip install -e .

CLI Usage on v0.1.1

Usage

CLI

Process a single image:

madurify input.jpg -o output.jpg

Or use Python directly:

python -m src.cli.main input.jpg -o output.jpg

Options:

  • -o, --output: Output file path (default: input_madurified.jpg)
  • -m, --maduro-face: Path to face templates (can be more than one) (default: assets/maduro_face*.jpg)
  • -p, --predictor: Path to dlib predictor (default: models/shape_predictor_68_face_landmarks.dat)

Web Interface

Start the web server:

uvicorn src.web.app:app --reload

Then open your browser to http://localhost:8000

Web Interface on v0.1.1

Warning

The developer and contributors do not contribute to this application for hate purposes. This repository is intended for educational purposes only.

License

See LICENSE file for details.

About

Add Maduro's face to your images. (In testing)

Resources

License

Stars

Watchers

Forks

Contributors