keijiro / UnityMLStableDiffusion
- среда, 29 марта 2023 г. в 00:13:39
Core ML Stable Diffusion on Unity
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.
Although the plugin supports iOS, it requires huge amount of memory to run the model, so it only supports memory-rich iPad models.
Before running the sample project, you must put the model files in the
Assets/StreamingAssets
directory.
split_einsum/compiled
directory into Assets/StreamingAssets
.StableDiffusion
.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.