百科.dev
全部条目趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

ml-stable-diffusion

> 编程语言
开源

Stable Diffusion 有苹果硅上的核心ML

17.9K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Stable Diffusion 有苹果硅上的核心ML

核心ML Stable Diffusion 在苹果硅上与核心ML一起运行Stable Diffusion [\[Blog Post\]] (https://mainthlearning.apple.com/research/stable-diffusion-coreml-apple-silicon) [\[BibTeX\]] (#bibtex). 这个寄存器包括:- pythoncoremstablediffusion,一个用于将PyTorch模型转换为Core ML格式并使用Hugging Face扩散器在Python-StableDifusion中实现图像生成的Python包,一个Swift包,开发者可以添加到他们的Xcode项目中,作为依赖,在应用中部署图像生成能力. 斯威夫特包依赖于由 pythoncoremlstablediffusion 生成的核心 ML 模型文件 如果安装或运行时间遇到问题,请参见FAQ部分. 请在开始前参考系统要求部分 。 <a name="系统-要求" </a 系统要求 > < 细节 < 简要细节 (点击来扩展) </ sum

核心特点

  • •python_coreml_stable_diffusion, a Python package for converting PyTorch models to Core ML format and performing image generation with Hugging Face diffusers in Python
  • •This benchmark was conducted by Apple and Hugging Face using public beta versions of iOS 17.0, iPadOS 17.0 and macOS 14.0 Seed 8 in August 2023.
  • •The performance data was collected using the benchmark branch of the Diffusers app
  • •Swift code is not fully optimized, introducing up to ~10% overhead unrelated to Core ML model execution.
  • •The median latency value across 5 back-to-back end-to-end executions are reported
  • •Weights are compressed to 6 bit precision. Please refer to this section for details.
  • •Activations are in float16 precision for both the GPU and the Neural Engine.
  • •* indicates that the reduceMemory option was enabled which loads and unloads models just-in-time to avoid memory shortage. This added up to 2 seconds to the end-to-end latency.
  • •Performance may vary due to factors like increased system load from other applications or suboptimal device thermal state.
  • •This benchmark was conducted by Apple and Hugging Face using iOS 17.0.2 and iPadOS 17.0.2 in September 2023.

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月9日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言