jp.keijiro.ml-stable-diffusion

1.4.0 • Public • Published

Unity Core ML Stable Diffusion Plugin

gif

Stable Diffusion plugin for Unity, based on Apple's Core ML port. You can run the model on-editor and at-runtime without needing any extra components.

System Requirements

  • Unity 2023.1 or later
  • Apple Silicon Mac (editor/runtime support) with macOS 13.1 or later
  • iPad Pro with Apple silicon (runtime support) with iOS 16.2 or later

Although the plugin supports iOS, it requires huge amount of memory to run the model, so it only supports memory-rich iPad models.

How To Try

Before running the sample project, you must put the model files in the Assets/StreamingAssets directory.

It takes a long time (a few minutes) for the first run. After this initialization step, it only takes a few tens of seconds to generate an image.

Sample Projects

gif

  • Flipbook3: Running the image-to-image pipeline with a real-time 3D scene.

Readme

Keywords

Package Sidebar

Install

npm i jp.keijiro.ml-stable-diffusion

Weekly Downloads

3,085

Version

1.4.0

License

SEE LICENSE in LICENSE

Unpacked Size

2.25 MB

Total Files

24

Last publish

Collaborators

  • keijiro