Skip to content

sartq333/chill-guy-maker

Repository files navigation

chill-guy-maker

A fun project that lets you replace the face in a meme with another face using Python and Gradio.

Download and save the model weights (config.json, model.safetensors, preprocessor_config.json) in the face parsing directory.

Try out here: https://huggingface.co/spaces/Sartc/chillGuy_maker. As of now, you'll have to adjust the face_x, face_y, face_width and face_height parameters to get the desired results, but I'll try to automate them too in future.

image

image

image

image


Features

  • Replace faces in the chill guy meme with a custom face.
  • Control the face's position, size, and orientation (optional flip). I will also try to automate this thing so that we can get final output without any intervention.

How to Run Locally

  1. Clone this repository:
    git clone https://github.com/sartq333/chill-guy-maker.git
    cd chill-guy-maker
  2. Install the dependencies:
pip install -r requirements.txt
  1. Launch the Gradio app:
    python3 app.py

Acknowledgments:

Segmentation model used in this project has been taken from here: https://huggingface.co/jonathandinu/face-parsing.

Built with Gradio, PyTorch and OpenCV.

Inspired by dingboard.

About

fetches your face from your headshot image and makes you a chill guy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published