DCAI
Loading Light/Dark Toggl

StableDiffusion webUI Explains how to use LoRA model for beginners

⏱️5min read
📅 May 08, 2024
🔄 Jul 26, 2024
Category:📂 Novice
StableDiffusion webUI Explains how to use LoRA model for beginners featured Image
Supported by

What is the Lora Model?

The Lora (Low-Rank-Adaption) model is one of Stable Diffusion’s training methods that allows you to orient AI illustrations to checkpoint models with very little data. This allows the original checkpoint model to be styled without straining storage.

We especially recommend it to anyone who is making AI illustrations and has a checkpoint model full of them.

PR
Seagate Expansion 14TB External Hard Drive USB 3.0 with Rescue Data Recovery Services (STKP14000400)の商品画像
Seagate Expansion 14TB External Hard Drive USB 3.0 with Rescue Data Recovery Services (STKP14000400)
🔗Newegg Link
SAMSUNG 990 PRO M.2 2280 4TB PCI-Express Gen 4.0 x4, NVMe 2.0 V7 V-NAND 3bit MLC Internal Solid State Drive (SSD) MZ-V9P4T0CW. W/Heatsinkの商品画像
SAMSUNG 990 PRO M.2 2280 4TB PCI-Express Gen 4.0 x4, NVMe 2.0 V7 V-NAND 3bit MLC Internal Solid State Drive (SSD) MZ-V9P4T0CW. W/Heatsink
🔗Newegg Link

Download Lora Model

To find a model, go to 🔗Cibitai’s model page to find the model of your choice.

You can easily browse by using filters to narrow down your search to “Lora” models.

How to install the Lora model

As with NegativeEmbedding, all you have to do is put the file in the specified folder.

Here we will use Civatai’s popular “Detail Tweaker” model as an example. Please download the model from the link below.

Move the downloaded file to the \stable-diffusion-webui\models\Lora folder.

If you download various models, you will lose track of what is in the “Lora” folder, so we recommend that you create a child folder such as “Style” to keep the models organized.

Open the Web UI browser and open “Lora” in the Generation Parameters area.

If the file name add_detail of the “Detail Tweaker” that you just downloaded is not listed, press the refresh button on the right.

If add_detail appears in the list, the installation is complete.

How to use Lora Model UI

Model Search: If you want to search for a model, enter it here.
Sort by path: Sort the model list by file path.
Sort by name: Sort the model list by file name.
Sort by creation date: Sort the model list by file creation date.
Sorted by update date: Sort the model list by the date the file was last updated.
Sort in descending or ascending order: Sort the model list in descending or ascending order.
Switching tree view: If the \stable-diffusion-webui\model\Lora folder is further subdivided into child folders, activate this button to switch to the tree view.
Model update: Updates the listings on the “Lora” page. Use this page when you put in a new model, or after switching the base model from SD1.5 to SDXL.

How to use the Lora model

From the Lora page, click on “Detail Tweaker” to adapt it.

If <lora:add_detail:1> appears in the prompt area, it has been adapted with weight 1.

Detail Tweaker comparison image
Adapt the Detail Tweaker to control detail.
Open Image

About Lora Model Weights

The range of adaptation rates (weights) for the Lora model varies from model to model, so read the model descriptions.

For instance, the “Detail Tweaker” introduced here ranges -2 ~ 2. You can adjust the fineness of the AI illustration within the range of these numbers.

Detail Tweaker weight comparison image
You can control the effect of Lora by the number of weights.
Open Image

How to update the thumbnails in the Lora Model List

Thumbnails can be registered in the same way as on the “Textual Inversion” page.

Generate images with models in portrait (SD1.5 -> 512×768/ SDXL -> 768×1344) with txt2img.

Lora Model Edit Button
There is an edit button in the upper right corner of the card.
Open Image

Once the image you want to use as a thumbnail has been generated, open the model edit screen on the “Lora” page.

Press “Replace preview” to replace the image with the one you just generated.

If you want to remove the thumbnails, you can find the model name.png in the \stable-diffusion-webui\models\Lora folder and delete the PNG image to return to the initial state.

Conclusion

In this article, We have explained how to install and use the Lora model. Basically, model installation for Stable Diffusion Web UI is not particularly difficult since all you have to do is put the model into the specified folder. In our next article, We would like to introduce Lora’s recommended SD1.5 model.

PR
ZOTAC GAMING GeForce RTX 4070 Ti SUPER Trinity Black Edition DLSS 3 16GB GDDR6X 256-bit 21 Gbps PCIE 4.0 Gaming Graphics Card IceStorm 2.0 Advanced Cooling SPECTRA RGB Lighting ZT-D40730D-10Pの商品画像
ZOTAC GAMING GeForce RTX 4070 Ti SUPER Trinity Black Edition DLSS 3 16GB GDDR6X 256-bit 21 Gbps PCIE 4.0 Gaming Graphics Card IceStorm 2.0 Advanced Cooling SPECTRA RGB Lighting ZT-D40730D-10P
🔗Newegg Link
CORSAIR RMx Shift Series RM1000x Shift Fully Modular 80PLUS Gold ATX Power Supplyの商品画像
CORSAIR RMx Shift Series RM1000x Shift Fully Modular 80PLUS Gold ATX Power Supply
🔗Newegg Link
Supported by