MENU

Finding the Optimal Values for LoRA for Beginners in Stable-Diffusion

This site uses affiliate links.

Liiza: ‘This time, let’s take a look at how to find the optimal values for LoRA.’
kojirom: ‘Sounds good, let’s use this person’s work. It has a considerable number of downloads. Looks promising.’

Liiza: ‘For those considering selling illustrations, it’s important to check the license properly.’

While there is a display of CreativeML Open RAIL-M, on the right side, numerous prohibitions are indicated by icons.

kojirom: ‘Exactly. We need to look closely at the license display. Clicking on the icon reveals so many ‘X’ marks.’

Liiza: ‘It might be good to keep a record with Web Archive.’
kojirom: ‘Yeah, it’s reassuring for later, and we want to avoid trouble. To download, don’t click on ‘create’ but the arrow next to it.’

Liiza: ‘And don’t forget to press the ♥ mark. It also supports the author.’
kojirom: ‘It also keeps us updated on the author’s new works.’
Liiza: ‘Please tell me how to find the latest LoRA.’
kojirom: ‘From this funnel-like icon, click what suits you. Then a filter applies, and the desired results show up at the top.’

To hide something, click the three dots in the top right corner and select the appropriate ‘Hide ~.’

Liiza: ‘You can also create your own folders in the LoRA folder.’
kojirom: ‘Yes, that makes it easier to organize. It’s also displayed in the interface. Ah, avoid using double-byte characters like Japanese or spaces in folder names.’

Liiza: ‘Clicking on the Lora icon automatically fills in the prompt, right?’

It automatically inputs the prompt around the middle. Click again to cancel the input.
If you move the cursor to the top right, a tool icon appears. Clicking it opens the settings page.

kojirom: ‘That’s right. But the most important thing is to properly enter the trigger word in the activation field. This LoRA doesn’t have a trigger word set, so let’s leave it blank.’

Anything entered in the top ‘Description’ field will also be displayed in the interface. This area, as well as the ‘Notes’ section, can be used for taking notes.

kojirom: ‘You can set recommended weights. If the author’s page has numerical values, you can use them as is. We will now start looking for these recommended weights. Oh, and remember to press the save button at the bottom right. It’s not visible in the capture image, but if you don’t press it, all the trigger words you entered will be lost.’

Clicking around the middle of the icon within the LoRA tags will input the prompt into the prompt field. However, to make sure it’s entered correctly, you need to scroll up…

kojirom: ‘First, set the intensity to about 0.8… Let’s generate with ‘1girl.”

kojirom: ‘I’ll use the X/Y/Z plot. Click on the ‘Script’ field at the bottom left.’

kojirom: ‘If the skirt opens, select the X/Y/Z plot.’

kojirom: ‘A lot of options appeared. Let’s start with only using X.’

kojirom: ‘Proceed to X type > Seed > Prompt S/R.’

kojirom: ‘Enter the values you want to compare in X values. Start with three types: 0.8 – 0.9 – 1.’

kojirom: ‘I’ll show you the other settings, but since this is just a comparative experiment, we prioritize speed, and the quality of the image will not be good with these settings.’

kojirom: ‘Seeking speed, keep the values as low as possible, lower and lower…’

Liiza: ‘The settings recommended by the author are also important. Let’s start by following them for generation.’
kojirom: ‘Exactly. Look, even though I only entered three values, four images came out thanks to the commas.’

Liiza: ‘Oh, what happens if you remove the commas?’
kojirom: ‘If you remove the commas, the last plain image won’t appear. But for now, let’s continue and slightly change the parameters.’
Liiza: ‘Is there anything to be careful about when changing values in the prompt?’
kojirom: ‘Actually, while the 0.8 image is good, I also want to see the 0.7 image. So let’s change the prompt values to 0.7. If you say ‘It’s fine to have them in the order 0.8 – 0.7 – 0.9,’ you don’t need to change it, but since we are comparing images, it’s better to arrange them in numerical order.'”
Liiza: “Are there any rules when using the X/Y/Z plot?”
kojirom: “The important thing is that the first value in the prompt matches the first value in the X/Y/Z plot. That’s why it’s necessary to rewrite the LoRA number in the prompt field.
If the X values field is

<lora:○○:0.8>, <lora:○○:0.7>, <lora:○○:0.9>,
then in the prompt field at the top left for LoRA should be
<lora:○○:0.8>,
If the X values field is
<lora:○○:0.7>, <lora:○○:0.8>, <lora:○○:0.9>,
then in the prompt field at the top left for LoRA should be
<lora:○○:0.7>,”

kojirom: “Looking at this, around 0.8 seems to be just right. But it’s worth trying out more. I guess we don’t need anything above 0.9. Let’s delete those.”

kojirom: “Since I deleted the commas at the edge, the plain images that were generated on the right side will no longer appear.”
Liiza: “How would the 0.6 image change?”
kojirom: “At 0.6, the effect of LoRA becomes quite diluted. But it might be good for some people, so this can also be a reference.”

Liiza: “Oh? The text above looks a bit…”
kojirom: “Yeah, the name of the LoRA is becoming unclear. I really would like the file names to be in half-width alphanumeric characters.”
Liiza: “Can you also tell me how to change the text color, background color, and font of the frame?”
kojirom: “Of course. You can customize various things in the Settings > Saving images/grids tab.”

Liiza: “Then, let’s use the Y-axis as well and try to find the optimal values for the images in XYZ.”
kojirom: “Sounds good, though we won’t go as far as Z. Let’s compare the checkpoints then.”

Liiza: “When specifying checkpoints in the X/Y/Z plot, those are prioritized, right?”
kojirom: “Right. You don’t have to worry about the checkpoints displayed in the top left window. So, let’s generate them now.”
Liiza: “How long does it take to generate images?”
kojirom: “You have to wait for the number of images, but seeing the results makes it worth the wait.”

Liiza: “What about more detailed adjustments? Down to two decimal places?”
kojirom: “We could try that. Let’s see what changes occur between 0.75 and 0.85. Oh, adding a white background might be good too. Add ‘white background,’ to the positive prompts and… Generate! …Wow! It’s almost at a level where it could be used as an icon.”

Liiza: “To summarize, it was very simple when we actually tried it.”
kojirom: “Exactly. With this method, anyone can easily find the optimal values for LoRA. So everyone, please try finding the appropriate values with various LoRA settings. See you!”

I also recommend this article!

目次