https://github.com/unitycoder/unityinvokeai
simple Unity editor UI for calling InvokeAI (stable diffusion) web interface (locally)
https://github.com/unitycoder/unityinvokeai
Last synced: 3 months ago
JSON representation
simple Unity editor UI for calling InvokeAI (stable diffusion) web interface (locally)
- Host: GitHub
- URL: https://github.com/unitycoder/unityinvokeai
- Owner: unitycoder
- License: mit
- Created: 2022-11-04T15:36:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T19:45:34.000Z (over 2 years ago)
- Last Synced: 2025-02-27T07:51:12.543Z (4 months ago)
- Language: C#
- Homepage:
- Size: 35.2 KB
- Stars: 98
- Watchers: 7
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnityInvokeAI
simple Unity editor UI for calling InvokeAI (stable diffusion) web interface (locally)## Important Note
- This currently supports only invokeAI version v1.14.1
- Unity version is 2019.4.25f1 (but should work in newer releases too)#### Installation : InvokeAI v1.14.1)
- install anaconda https://docs.anaconda.com/anaconda/install/windows/
- NOTE can also follow old install instructions at https://github.com/invoke-ai/InvokeAI/tree/9b28c65e4b0526956fd90ad86e2118536e4eaa9b
- Download https://github.com/invoke-ai/InvokeAI/releases/tag/release-1.14.1 (source code zip)
- unzip it
- run Anaconda3 Prompt (from windows start menu)
- Go to your invokeAI download folder: ```cd C:\Users\USERNAME\Downloads\InvokeAI-release-1.14.1\InvokeAI-release-1.14.1\``` (main.py is in this folder)
- ```conda activate ldm```
- download models from: https://huggingface.co/CompVis/stable-diffusion-v-1-4-original (you'll need to signup first and accept license agreement)
- download **"sd-v1-4.ckpt"**
- create folder(s): **\InvokeAI-release-1.14.1\models\ldm\stable-diffusion-v1**
- place **"sd-v1-4.ckpt"** file there, rename it as **"model.ckpt"**
- From anaconda3 prompt, run: ```python scripts\preload_models.py```
- From anaconda3 prompt, run: ```python scripts\dream.py --web```
- test in browser: http://127.0.0.1:9090/### Setup Unity plugin
- open window Tools/StableUI
- in the settings view, paste in your installation folder (example): **"C:\Users\USERNAME\Downloads\InvokeAI-release-1.14.1\InvokeAI-release-1.14.1\"**
- click save
- test image creation by adding some prompt and press "Generate"### Info
- See https://github.com/unitycoder/UnityInvokeAI/wiki### Images
### Website
- https://unitycoder.com/blog/2022/11/04/unity-stable-diffusion-plugin/