| title | colorFrom | colorTo | sdk | sdk_version | app_file | pinned |
|---|---|---|---|---|---|---|
Morphix |
blue |
green |
gradio |
5.44.1 |
app.py |
true |
Morphix is an AI app that lets you upload a portrait photo and transform it into different artistic styles (Comic, Anime, Oil Painting, Pixel Art, Watercolor).
It uses Stable Diffusion + ControlNet (Canny) to preserve structure while changing the artistic look.
- Upload any portrait photo.
- Choose from 5 pre-defined artistic styles.
- Adjustable guidance scale and inference steps for creativity vs. accuracy.
- Runs interactively in your browser via Gradio.
- Ready to deploy on Hugging Face Spaces.
- Python 3.9+
- PyTorch with CUDA
- Hugging Face Diffusers (Stable Diffusion + ControlNet)
- Gradio for UI
- OpenCV for edge detection
Clone the repository and install dependencies:
git clone https://github.com/yourusername/Morphix.git
cd Morphix
pip install -r requirements.txtOr using conda:
conda create -n morphix python=3.10 -y
conda activate morphix
pip install -r requirements.txtpython app.pyHere’s how one portrait can take on five completely different looks using Morphix’s style options.
See below as the same photo is reimagined as Comic, Anime, Oil Painting,
Pixel Art, and Watercolor styles.
| Input Portrait | Comic Style | Anime Style |
|---|---|---|
![]() |
![]() |
![]() |
| Oil Painting Style | Pixel Art Style | Watercolor Style |
|---|---|---|
![]() |
![]() |
Note:
For all examples, the guidance scale and inference steps were kept at their default values:
- Guidance scale: 7.5
- Inference steps: 30
Input photo source: Freepik – Adorable blonde woman with serious expression




