Skip to main content
All CollectionsHow to Use PixAI
Train LoRA with PixAI
Train LoRA with PixAI
Updated over 7 months ago

With PixAI's new LoRA training feature, you can simply upload the images of your favorite characters or art styles to customize your own LoRAs. Then, you will be able to teach the AI to generate more amazing images with the same essense!

What is a LoRA

LoRAs (Low-Rank Adaptation) are like add-on modifiers for AI models.

You can add loras while you generate to teach the AI to do a specific thing, such as a character, an art style, a pose, or an aesthetic.

Have you ever been frustrated when the AI doesn't seem to understand a character name or word you put in the prompts? That is because the AI model don't have that word in its vocabulary.

This is where LoRAs come in handy.

LoRAs will apply small changes on where the image and the prompt meet, which means that LoRA will help the AI understand specific prompt better during generation.

Training a LoRA

What "Train" means

Similar to the process to training an AI model, to make an effective LoRA, we need to feed it a set of images to teach the LoRA about your desired character, style, or pose. This progress is called Training.

Through the images you provide, the LoRA will be able to 'recognize' a new word you enter in to the prompts and draw it accordingly.

Usually, training a LoRA is quite a inconvenient, multi-step process. But have made it a lot easier here on PixAI!

Where to Train a LoRA in PixAI

You may found this button on the side bar

or this button on top bar, generated tasks, Model Market, LoRA/Model selection pop window in generation panel↓

Once you click on them, they will bring you to the LoRA training page.

LoRA Training Page

example page

1. Base Model

First, you need to choose your base model for the LoRA training.

What is a Base Model?

Base model will affect the AI's understanding and the LoRAs' style.

After training this LoRA, what model will you use with it for image generation later? If you see your go-to model on the list, go ahead and choose that one.

The base model you choose will make your LoRA more compatible with it.

eg. LoRA trained with Moonbeam as a base model will work well when I use it with Moonbeam; but it may not work as well with other models.

If you are unsure, the more fundimental/original models (Like Anything V5) will make a more versatile LoRA.

We highly recommend choosing Anything V5 as the base model for anime style LoRA, and RealisticVisionV51 for realistic style LoRA

2. Basic Settings

  1. Name your LoRA

    Give your LoRA an awesome name!

  2. Choose the purpose of your LoRA

    Is your LoRA about an anime character, a realistic character, a scenery, or a style?

    Choose the option that best catagorize your LoRA as we will apply slightly different processing techniques depending on its purpose!

  3. Trigger Words

    The trigger words you write down will be added in the prompts to activate this LoRA later on during image generation.

    Remember that LoRAs will help an the AI learn new words or character names? You can think of trigger words as the vocabulary you wish the AI to learn.

    We recommend writing down the name of your character or style, plus some basic traits or descriptions.

    eg. ganyu, blue hair, horns

3. Reference Images

What does reference images do in LoRA training

To train a LoRA, you will need to feed the AI a set of images to use as reference.

The AI will learn the common characteristics or the 'essence' in your images and associate it with the trigger word you put in.

[IMPORTANT] What types of images should you upload?

Image Suggestions:

  • Upload at least 10 images.

  • Keep your images about one subject or character only.

  • Make sure your subject is clear and in-focus on all the images.

  • Try to include images of your subject in different contexts, angles and lighting.

  • Please try to keep your image size above 1024 pixels. Higher image quality will lead to better results.

Caution:

  1. Each training will cost 25,000 credits except special discount.

  2. You can't alter your uploaded images after you submit your training request.


Check Trained LoRA

example page

You can check your LoRA training status in your Personal Profile Page. LoRAs you trained will show up in your Models/LoRAs tab. It will tell you if the LoRA training is completed or not.

If LoRA training is completed, it will show as 100%.

Otherwise, it will show as progressing percentage.

Test Your Result

Use your newly trained LoRA for a task to test how your LoRA works.

Choose a model similar to your LoRA's base model:

For example, if you chose an anime-styled base model for your LoRA, please choose an anime-style model for your image generations also.

Furthermore, same with normal image genaration, the more specific prompts you describe the character or style trait in your LoRA, the better test result you may have with the LoRA.


Publish Trained LoRA

You can choose to publish trained LoRA to PixAI community. Add a cover image for your LoRA and you're good to publish!

Did this answer your question?