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

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上で画像を生成するとプログレスバーで画像生成のプログレスを把握することが出来ます。

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.witchpot.com/production/rkarusbnitsuite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
