https://github.com/sartq333/chill-guy-maker
fetches your face from your headshot image and makes you a chill guy.
https://github.com/sartq333/chill-guy-maker
computer-vision huggingface machine-learning python3 pytorch
Last synced: 2 months ago
JSON representation
fetches your face from your headshot image and makes you a chill guy.
- Host: GitHub
- URL: https://github.com/sartq333/chill-guy-maker
- Owner: sartq333
- Created: 2024-12-11T07:03:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-10T05:36:53.000Z (over 1 year ago)
- Last Synced: 2025-04-08T04:32:12.547Z (over 1 year ago)
- Topics: computer-vision, huggingface, machine-learning, python3, pytorch
- Language: Jupyter Notebook
- Homepage: https://huggingface.co/spaces/Sartc/chillGuy_maker
- Size: 137 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://huggingface.co/jonathandinu/face-parsing) (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.




---
## 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:
```bash
git clone https://github.com/sartq333/chill-guy-maker.git
cd chill-guy-maker
```
2. Install the dependencies:
```bash
pip install -r requirements.txt
```
3. Launch the Gradio app:
```bash
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.