# Switch Models/LoRA

It is possible to apply any model and LoRA to generate consistent images.

## Get Model/LoRA

Note: The use of unauthorized images of others for LoRA and other model learning is an area where regulations have not yet caught up. Wictchpot Inc will not have responsibility for such actions. Please be respectful to other creators and use images with care so as not to infringe on others' copyrights.

Please prepare a model of the image you would like to create. Be careful about licenses and copyrights.

There are several ways to prepare the model/LoRA

* Train by yourself
* Search for models on HuggingFace
* etc

LoRA samples prepared by Witchpot are distributed here. More samples will be added.

{% embed url="<https://huggingface.co/Witchpot/icestage>" %}

Note: Currently, Depth2Img can only be used with stable-diffusion 1.5 models due to the use of ControlNet. Text2Img and Image2Image can be used with 2.1 series.

## Model/LoRA file arrangement

After preparing the model and LoRA files (.ckpt, .safetensor), place them under the following paths

You can open the parent folder with Unity menu Witchpot > Utility > Open Installed Dir

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

<table><thead><tr><th width="107">Target</th><th>Path</th></tr></thead><tbody><tr><td>Model</td><td><p><code>C:\Users\[User Name]\Witchpot\</code></p><p><code>StableDiffusion.WebUI@1.2.0\webui\models\Stable-diffusion</code></p></td></tr><tr><td>LoRA</td><td><p><code>C:\Users\[User Name]\Witchpot\</code></p><p><code>StableDiffusion.WebUI@1.2.0\webui\models\Lora</code></p></td></tr></tbody></table>

## Set the Model/LoRA on Unity

Open following path StableDiffusionWebUISettings.

`Assets\Plugins\Witchpot\Packages\StableDiffusion\Runtime\Settings\StableDiffusionWebUISettings`

You can get these models/LoRA list by ListModels button

<figure><img src="/files/avIfIwMLRxRoQXK24L6k" alt=""><figcaption></figcaption></figure>

The list obtained here will be available for selection in the Model and Lora of each Depth2Img.cs or other image generation component.

<figure><img src="/files/60Poa6XdKpmS5QJs4JSC" alt=""><figcaption></figcaption></figure>


---

# 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/english/production-tips/switch-models-lora.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.
