This repository contains scripts for generating images using Stable Diffusion locally through a simple web interface. It is built on Apple's MLX framework for Apple silicon. This repo is based on the work found at https://github.com/ml-explore/mlx-examples/tree/main/stable_diffusion.
- Generate images using text prompts through a web interface.
- Supports models
stabilityai/sdxl-turbo
andstabilityai/stable-diffusion-2-1
.
Before you start, ensure you have Python 3.6 or later installed. It's recommended to use a virtual environment.
- Clone this repository:
git clone https://github.com/yzimmermann/Stable-Diffusion-MLX.git
cd Stable-Diffusion-MLX
- Install the required dependencies:
pip install -r requirements.txt
To run the script locally with the Gradio interface:
python app.py
To share the Gradio interface publicly (a public link will be generated, only share with people you trust!):
python app.py --share