MochiDiffusion  by MochiDiffusion

Native macOS app for local Stable Diffusion image generation

created 2 years ago
7,745 stars

Top 6.8% on sourcepulse

GitHubView on GitHub
Project Summary

MochiDiffusion enables native Stable Diffusion image generation on macOS, specifically targeting Apple Silicon Macs. It provides a fast, memory-efficient, and offline solution for users looking to leverage their Mac hardware for AI art creation, including features like Image2Image and ControlNet.

How It Works

MochiDiffusion utilizes Apple's Core ML framework, optimizing Stable Diffusion models for Apple Silicon's Neural Engine. This approach maximizes performance and minimizes memory usage (around 150MB with the Neural Engine), offering a significant advantage over CPU-bound or less optimized GPU solutions on Mac hardware. The use of compiled Core ML models ensures faster inference after an initial compilation cache.

Quick Start & Requirements

  • Install: Download the latest macOS native app from the project's releases.
  • Prerequisites: macOS Sonoma 14.0 or later. Xcode 15.2 is required for building from source.
  • Models: Requires Core ML converted Stable Diffusion models. Instructions and community models are linked.
  • Setup: Initial model compilation may take up to 2 minutes per model; subsequent generations are faster.

Highlighted Details

  • Native macOS app built with SwiftUI.
  • Extremely memory efficient (~150MB VRAM with Neural Engine).
  • Supports Image2Image and ControlNet.
  • Generated images include prompt info in EXIF metadata.
  • Upscaling capabilities using RealESRGAN.

Maintenance & Community

The project welcomes contributions via bug reports, code, and translations. Issues and feature requests can be submitted via GitHub Issues. Translations are managed on Crowdin.

Licensing & Compatibility

The project's licensing is not explicitly stated in the README. Compatibility is limited to Apple Silicon Macs running macOS Sonoma 14.0+.

Limitations & Caveats

The README does not specify the license, which may impact commercial use or integration into closed-source projects. Initial model compilation can be time-consuming. The project relies on Apple's Core ML implementation, which might have its own performance characteristics or limitations compared to other platforms.

Health Check
Last commit

2 weeks ago

Responsiveness

1 day

Pull Requests (30d)
2
Issues (30d)
1
Star History
87 stars in the last 90 days

Explore Similar Projects

Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Georgios Konstantopoulos Georgios Konstantopoulos(CTO, General Partner at Paradigm), and
2 more.

mflux by filipstrand

0.7%
2k
MLX port of FLUX for local image generation on Macs
created 11 months ago
updated 14 hours ago
Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Anil Dash Anil Dash(Former CEO of Glitch), and
8 more.

diffusionbee-stable-diffusion-ui by divamgupta

0.1%
13k
GUI app for local Stable Diffusion on MacOS
created 2 years ago
updated 9 months ago
Starred by Georgios Konstantopoulos Georgios Konstantopoulos(CTO, General Partner at Paradigm), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
9 more.

ml-stable-diffusion by apple

0.1%
18k
Core ML Stable Diffusion for Apple Silicon devices
created 2 years ago
updated 1 month ago
Feedback? Help us improve.