huggingface

swift-coreml-diffusers

huggingface

Swift app demonstrating Core ML Stable Diffusion

AI 简介

这是一个基于 Swift 的原生 macOS/iOS 应用,演示如何在 Apple 平台集成 Core ML 加速的 Stable Diffusion 图像生成模型。核心功能包括:自动下载并解压量化后的 Core ML 版 Stable Diffusion v2-base 模型、支持 CPU/GPU/Neural Engine 多硬件调度、采用 Swift 实现的 DPM-Solver++ 快速采样器,并兼容 coremltools 7+ 生成的量化模型。项目适用于本地端侧 AI 图像生成场景,如离线创作、隐私敏感的图像生成、教育演示及 Core ML 模型部署验证,需 macOS 14+/iOS 17+ 运行环境。

Swift
Apache License 2.0
2.8k
Stars
237
Forks
38
Watchers
39
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分29.13
默认分支main