Skip to content

keijiro/UnityMLStableDiffusion

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
March 28, 2023 23:51
March 28, 2023 15:33
March 28, 2023 23:47
March 26, 2023 16:54
March 28, 2023 23:47
March 21, 2023 16:05
March 23, 2023 16:31
March 28, 2023 15:10
March 28, 2023 23:47

Unity Core ML Stable Diffusion Plugin

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.

About

Core ML Stable Diffusion on Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published