> For the complete documentation index, see [llms.txt](https://docs.witchpot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.witchpot.com/production/rkarusbnitsuite.md).

# ローカルサーバーについて

stable-diffusion-for-unityは[AUTOMATIC1111](https://github.com/AUTOMATIC1111)/[**stable-diffusion-webui**](https://github.com/AUTOMATIC1111/stable-diffusion-webui)ベースとしたシステムが自動でインストールされ、UnityとAPI経由で通信しています。

このWebUIはPCのメインドライブ`C:\Users\[User Name]\Witchpot\`内に配置されます。

Unity上でStartServerを行うとWindowsのコマンドプロンプトが自動で起動します。

メニューのWitchpot>StartServerボタンまたはDepth2Img各コンポーネントのStartServerボタン(サーバーが起動していないときのみ表示されます)からサーバーを起動できます。<br>

<div align="left"><figure><img src="/files/LKdlrVCa5gUdKG5EplxI" alt=""><figcaption></figcaption></figure> <figure><img src="/files/ktZ9dexwwjvAazXjgH2a" alt=""><figcaption></figcaption></figure></div>

サーバーの稼働状況はコマンドプロンプトから把握可能です

<figure><img src="/files/6NkWFPdcJ38tZe8ypd8h" alt=""><figcaption></figcaption></figure>

初回の起動には時間がかかることがあります。

`Running on local URL:   http://127.0.0.1:7860`

などのURL表記が出たら無事インストールとセットアップが完了しています。

また、Unity上で画像を生成するとプログレスバーで画像生成のプログレスを把握することが出来ます。

画像生成が動かない場合はコマンドプロンプトの表記もご確認ください
