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

# 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>
