# Introduction

## What you can do with stable-diffusion-for-unity

Currently(April 2023) You can do bellow

* Image assets generation by Image generation AI (StableDiffusion)

<div><figure><img src="https://1270527639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVdP5UEfu2PNFw4I6asq%2Fuploads%2FfNdvx5FQ7Zqd4CQMvSLD%2Fdepth2imgsample.png?alt=media&#x26;token=1fcc32df-cc0b-4a49-81b2-149812226595" alt=""><figcaption></figcaption></figure> <figure><img src="https://1270527639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVdP5UEfu2PNFw4I6asq%2Fuploads%2FuSveHbG2GqCUcEbdJ81I%2Fdepth2img3dsample.png?alt=media&#x26;token=dc25898f-d032-4b61-b57a-05ce1fe76f96" alt=""><figcaption></figcaption></figure></div>

Following components are available, and you can see how to use it from the tile link.

<table><thead><tr><th width="169.33333333333331">Title</th><th width="381">Summary</th><th>Component title</th></tr></thead><tbody><tr><td>Text to Image</td><td>Image generation with text prompt</td><td>Text2Img.cs</td></tr><tr><td>Image to Image</td><td><p>Image generation with </p><ul><li>external Image input </li><li>Image from camera in Unity</li></ul></td><td>Img2Img.cs</td></tr><tr><td>Depth to Image</td><td>Image generation using Depth information acquired from camera in Unity</td><td>Depth2Img.cs</td></tr></tbody></table>

Also you can switch trained models/Lora for each image generation to enable consistent image generation

## Recommended Environment

We have tested the following environment. Required specs vary depending on which function you use.

* OS: Windows
* VRAM: 8GB\~
* Unity version:  Unity2021.3.18f1\~  Unity 2021 ※There are some issues on 2022\~&#x20;
  * RenderPipeline: URP

## About System configuration and OSS

This system installs and uses code from a [repository](https://github.com/witchpot-studio/stable-diffusion-webui) which fork from Stable Diffusion web UI.

If you modify these repository, please apply the GPL v3 license.

The main repository of this project, stable-diffusion-for-unity, is communicated via API and is available under the MIT license.
