Skip to content

AI app that lets you upload a portrait photo and transform it into different artistic styles (Comic, Anime, Oil Painting, Pixel Art, Watercolor).

Notifications You must be signed in to change notification settings

inesruizblach/Morphix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title colorFrom colorTo sdk sdk_version app_file pinned
Morphix
blue
green
gradio
5.44.1
app.py
true

🎨 Morphix – Portrait Style Transformation with Stable Diffusion + ControlNet

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.


✨ Features

  • 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.

🛠️ Tech Stack

  • Python 3.9+
  • PyTorch with CUDA
  • Hugging Face Diffusers (Stable Diffusion + ControlNet)
  • Gradio for UI
  • OpenCV for edge detection

📦 Installation

Clone the repository and install dependencies:

git clone https://github.com/yourusername/Morphix.git
cd Morphix
pip install -r requirements.txt

Or using conda:

conda create -n morphix python=3.10 -y
conda activate morphix
pip install -r requirements.txt

Run the Gradio app locally:

python app.py

🖼️ Examples

Here’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

About

AI app that lets you upload a portrait photo and transform it into different artistic styles (Comic, Anime, Oil Painting, Pixel Art, Watercolor).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages