> ## Documentation Index
> Fetch the complete documentation index at: https://docs.krea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> How to train a style like a pro in just a few minutes. 

# Krea Guide: Style Training

# Training an Insanely Good Style

If you're a Krea user, you're already awesome at text prompting. You've also probably trained LoRAs before. But what makes a **great** custom model?

**<u>Krea's 3 Key Steps for Training:</u>**

1. **Curation** <Icon icon="magnifying-glass-plus" />

* You need top tier images - high quality, high cohesion. You are the *curator* and Krea is your gallery.

2. **Refinement** <Icon icon="wrench" />

* Krea makes it super easy to tweak all the technical specs - foundation models, training steps, etc. Fine tune to your heart's content.

3. **Alchemy** <Icon icon="wand-sparkles" iconType="regular" />

* Lets be clear: **Style Training** is it's own art, not an exact science. If your training fails expectations don't panic. This is a trial and error process to create something *magical.* Iterate, iterate, iterate!

<img src="https://mintlify.s3.us-west-1.amazonaws.com/krea/images/IMG_4910.png" alt="IMG 4910 Pn" />

<Frame>
  <sub>Prompt: </sub>*<sub>An alchemist in their laboratory distilling an elixir, abstract.</sub>*<sub> Made using custom style with Krea 1 model. </sub>
</Frame>

## 1. Curation <Icon icon="magnifying-glass-plus" />

### <u>Uploading</u>

From [Krea.ai](http://www.krea.ai/), click the **Home** icon, under assets click [**Train**](https://www.krea.ai/train). Or just scroll down.

<img src="https://mintcdn.com/krea/v4jyq0_ESYgDxDVC/images/IMG_4891.jpeg?fit=max&auto=format&n=v4jyq0_ESYgDxDVC&q=85&s=2dac5799f2d3f9554e4adfa84daa5d25" alt="IMG 4891 Jpe" width="2178" height="591" data-path="images/IMG_4891.jpeg" />

Choose between **Image** or **Video** model. **Video** models can train both still images and video clips. Later you can reuse training data for a different type of model.

<img src="https://mintcdn.com/krea/v4jyq0_ESYgDxDVC/images/IMG_4893.jpeg?fit=max&auto=format&n=v4jyq0_ESYgDxDVC&q=85&s=b5ab07cccba1f7c8e235841f3f7bb6f5" alt="IMG 4893 Jpe" width="1392" height="1441" data-path="images/IMG_4893.jpeg" />

Upload as little as 3, or as many as 2000 images (game devs, we're looking at you <Icon icon="eyes" />).

While having more images helps, you're better off having 20 really *cohesive*, high quality images than 2000 \_average \_ones. In general, **quality > quantity** (as long as you have \_at least 5-10 \_images). Only make the dataset large if you can maintain the high bar.

<Tip>
  Remember: these images need to be as high resolution as possible. Lower resolution images can muddy outputs and create artifacts.
</Tip>

### <u>Dataset Types</u>

**Character** <Icon icon="person-fairy" />

* You can train a model to understand  specific drawn or rendered character (*illustration, concept art, animation, video games*, etc.). Also for training on a real person's face (consensually, of course).

<img src="https://mintcdn.com/krea/FfY_yHsciZMlHvl8/images/IMG_4888.png?fit=max&auto=format&n=FfY_yHsciZMlHvl8&q=85&s=0c1e73715986bf23ca4e66ad01a37503" alt="IMG 4888 Pn" width="2360" height="1640" data-path="images/IMG_4888.png" />

<Frame>
  The character data (right) and the style generated character (left) have consistent details.
</Frame>

* Use as many images of your character in the **exact same attire** for consistency. A variety of poses, angles, and actions are ideal.
  * *Animators* and *concept artists* - this is a super similar workflow to making character sheets.

<Tip>
  Training data with different outfits can be more useful for a realistic model based on a single person. If you plan to generate images where your character has different attire, upload a variety of looks.
</Tip>

**Object** <Icon icon="chair-office" />

* Same principles as character training - exact object, multiple angles, closeups for detail and wide shots for context.
  * If you're a *product designer* or work in *e-commerce*, just upload as many unique product shots as you have.
  * Blank or transparent backgrounds can help, but not necessary, as long as the object in the central focus of the image.

<img src="https://mintcdn.com/krea/43ShqEKkWY1bpTnL/images/IMG_4887.png?fit=max&auto=format&n=43ShqEKkWY1bpTnL&q=85&s=927ed3ee709e39fbcc200f917c480ef0" alt="IMG 4887 Pn" width="2360" height="1640" data-path="images/IMG_4887.png" />

<Frame>
  Same object, different angles, blank background. This is great training data.
</Frame>

* If ANY of your images are of a slightly different object or product, this will confuse the model, and muddy the results.

<Note>
  If there's text on the product, the style might not be able to replicate it unless you have a ton of training images with close ups on the text. Expect artifacts otherwise.
</Note>

**Aesthetic** <Icon icon="sparkles" />

* Here you can have a more relaxed, creative data set. The aesthetic or material of the works - exactly the same - but the subject matter can and should be really diverse.
  * *Oil painting, anime, liquid chrome, marble, low poly* - any true look or medium.

<img src="https://mintcdn.com/krea/FfY_yHsciZMlHvl8/images/IMG_4889.png?fit=max&auto=format&n=FfY_yHsciZMlHvl8&q=85&s=2acb311fe8a047b52a84c5316c4392b3" alt="IMG 4889 Pn" width="2360" height="1640" data-path="images/IMG_4889.png" />

<Frame>
  <sub>This sampling from a Low Poly dataset contains unique characters </sub>*<sub>and</sub>*<sub> backgrounds. </sub>
</Frame>

<img src="https://mintcdn.com/krea/T2JoEsYog1GgBCI4/images/IMG_4846.png?fit=max&auto=format&n=T2JoEsYog1GgBCI4&q=85&s=2b10b6b7c3755d0d7a90bc8a9c67ee19" alt="IMG 4846 Pn" width="1376" height="768" data-path="images/IMG_4846.png" />

<Frame>
  This generated image from the Low Poly style created an entirely new subject and compostion.
</Frame>

* A wide breadth stops the style from overfitting to one specific subject, allowing it to be truly inventive.

<Tip>
  Aesthetic styles are where your curatorship can really shine. Have fun and experiment. *Run wild*.
</Tip>

## 2. Refinement <Icon icon="wrench" />

Now it's time to tweak any technical parameters. Krea will name your **Custom Style** and assign a **trigger word** when prompting (change if needed).

<img src="https://mintlify.s3.us-west-1.amazonaws.com/krea/images/IMG_4899.jpeg" alt="IMG 4899 Jpe" />

<Frame>
  You can also check the meters for the number of images and the average resolution. So far so good.
</Frame>

### <u>Model</u>

* Krea's superpower is that it runs a variety of the top image and video generation models.
* Each model has its own specialties to choose from, but it's worth experimenting with all of them. Quick breakdown:

| <u>Model</u>  | <u>Type</u> | <u>Gen. Time</u> | <u>Strengths</u>                                          | <u>Use Cases</u>                                                    |
| :------------ | :---------- | ---------------- | --------------------------------------------------------- | ------------------------------------------------------------------- |
| Krea 1        | Image       | 8 sec.           | Photorealism, highly aesthetic                            | Graphic Design, Architecture, Product, Marketing Assets             |
| Flux          | Image       | 5 sec.           | Photorealism, high prompt adherence, anatomical precision | Concept Art, Graphic Design, Instructional Design, Marketing Assets |
| Flux Realtime | Image       | 1 min.           | Adapts in realtime to edits, high prompt adherence        | Protoyping, Social Content, E-Commerce                              |
| Wan 2.1       | Video       | 1 min.           | Natural motion, high scene consistency                    | Marketing, Social Content, Educational Assets                       |
| Wan 2.2       | Image       | 20 sec.          | Ultra realistic renders, highly aesthetic                 | Animation assets, Upscaling, Concept Art, Social Content            |
| Qwen          | Image       | 15 sec.          | Great text generation, prompt adherence                   | Text Assets, E-Commerce, Technical Designs, Concept Art             |

<Tip>
  Remember: the model you train with is the <u>only</u> model your custom style can generate with.
</Tip>

### <u>Steps</u>

* Increased steps = more time spent studying the data. Also can cost a lot of compute and *overfitting*, where the style just regurgitates the training images. Good start value is *amount of images* x *20*.

<img src="https://mintcdn.com/krea/MGcb6aU7EwcokMWZ/images/IMG_4896.jpeg?fit=max&auto=format&n=MGcb6aU7EwcokMWZ&q=85&s=5be0c9f6ad24935d83af31bf8f4df277" alt="IMG 4896 Jpe" width="2360" height="429" data-path="images/IMG_4896.jpeg" />

<Info>
  Default: 250.
</Info>

### <u>Learning Rate</u>

* Higher learning rate can lead to faster training, but also could lead to the style overfitting to the data. A low learning rate will take more time to train.

<img src="https://mintcdn.com/krea/MGcb6aU7EwcokMWZ/images/IMG_4897.jpeg?fit=max&auto=format&n=MGcb6aU7EwcokMWZ&q=85&s=acdd24551adb305ac23b7d11b75a7a12" alt="IMG 4897 Jpe" width="2360" height="416" data-path="images/IMG_4897.jpeg" />

<Info>
  Default: 0.004 (4e-3)
</Info>

### <u>Batch Size</u>

* Higher batch sizes can speed up training, but also lead to generic results. Adjusting the **Batch Size** and **Learning Rate** proportionally is recommended. For small datasets stick to our default.

<img src="https://mintcdn.com/krea/_nXL3Rtd1l6u8jnO/images/IMG_4895.jpeg?fit=max&auto=format&n=_nXL3Rtd1l6u8jnO&q=85&s=65b9ecc38a4ff06178d4f5b3f3b49912" alt="IMG 4895 Jpe" width="2360" height="264" data-path="images/IMG_4895.jpeg" />

<Info>
  Default: 1
</Info>

## 3. Alchemy <Icon icon="wand-sparkles" />

Once the style is trained, it's time to experiment. Prompt gods - *this is where you pop off.*

### <u>Push the Style:</u>

* Go above and beyond. Find strengths and shortcomings. Discover and document when the style generates great results, and when it doesn't.
  * **If the outputs are overfit to the style, consider:**
    * Diversifying the training data
    * Reducing the learning rate
  * **If the outputs are too varied, consider:**
    * Adding more images to the data set
    * Removing weak or diverse images from the data set
    * Increasing the learning rate

<Tip>
  Remember: Krea saves each set of style training data. Simply reuse the data whenever you need to refine a style.
</Tip>

<img src="https://mintlify.s3.us-west-1.amazonaws.com/krea/images/IMG_4915.jpeg" alt="IMG 4915 Jpe" />

<Frame>
  Based on these very similar sample generations, this style may be overfit. Try again.
</Frame>

### <u>Retraining</u>

* **Try a different model**
  * One model may be better than an another to capture your style. Shop around, that's what Krea is for. Refer to the model chart above if you're unsure.
* **Merge datasets**
  * Combining two or more datasets can create truly unique aesthetics. When stuck or frustrated with the limitations of a style, infuse it with new life.
* **Keep Experimenting**
  * Increase or decrease the number of images.
  * Ensure all your images are high resolution.
  * Tinker with Krea's fine tuning settings.

## Keep Creating <Icon icon="book-sparkles" />

Krea has everything you need to make fire custom styles. Show us your work by making your styles public on [Krea.ai](https://www.krea.ai/app) or share and build community on our [Discord](https://discord.com/invite/rJurUAR8Kz). <Icon icon="hand-peace" />

<img src="https://mintlify.s3.us-west-1.amazonaws.com/krea/images/IMG_4918.png" alt="IMG 4918 Pn" />
