art not-for-all-audiences text-to-image dataset:CyberHarem/pk_girlsfrontline license:mit region:us
---
datasets:
- CyberHarem/pk_girlsfrontline
license: mit
pipeline_tag: text-to-image
tags:
- art
- not-for-all-audiences
---

# Lora of pk/PK/PK (Girls' Frontline)

## What Is This?

This is the LoRA model of waifu pk/PK/PK (Girls' Frontline).

## How Is It Trained?

* This model is trained with [HCP-Diffusion](https://github.com/7eu7d7/HCP-Diffusion).
* The [auto-training framework](https://github.com/deepghs/cyberharem) is maintained by [DeepGHS Team](https://huggingface.co/deepghs).
* The base model used for training is [deepghs/animefull-latest](https://huggingface.co/deepghs/animefull-latest).
* Dataset used for training is the `stage3-p480-800` in [CyberHarem/pk_girlsfrontline](https://huggingface.co/datasets/CyberHarem/pk_girlsfrontline), which contains 149 images.
* Batch size is 4, resolution is 720x720, clustering into 5 buckets.
* Batch size for regularization dataset is 16, resolution is 720x720, clustering into 20 buckets.
* Trained for 1520 steps, 40 checkpoints were saved and evaluated.
* **Trigger word is `pk_girlsfrontline`.**
* Pruned core tags for this waifu are `long_hair, red_eyes, breasts, large_breasts, hair_ornament, very_long_hair, hair_over_one_eye, white_hair, bangs, bear_hair_ornament`. You can add them to the prompt when some features of waifu (e.g. hair color) are not stable.

## How to Use It?

### If You Are Using A1111 WebUI v1.7+

**Just use it like the classic LoRA**. The LoRA we provided are bundled with the embedding file.

### If You Are Using A1111 WebUI v1.6 or Lower

After downloading the pt and safetensors files for the specified step, you need to use them simultaneously. The pt file will be used as an embedding, while the safetensors file will be loaded for Lora.

For example, if you want to use the model from step 1140, you need to download [`1140/pk_girlsfrontline.pt`](https://huggingface.co/CyberHarem/pk_girlsfrontline/resolve/main/1140/pk_girlsfrontline.pt) as the embedding and [`1140/pk_girlsfrontline.safetensors`](https://huggingface.co/CyberHarem/pk_girlsfrontline/resolve/main/1140/pk_girlsfrontline.safetensors) for loading Lora. By using both files together, you can generate images for the desired characters.

## Which Step Should I Use?

We selected 5 good steps for you to choose. The best one is step 1140.

1480 images (1.48 GiB) were generated for auto-testing.

![Metrics Plot](metrics_plot.png)

The base model used for generating preview images is [Meina/MeinaMix_V11](https://huggingface.co/Meina/MeinaMix_V11).

Here are the preview of the recommended steps:

|   Step |   Epoch | CCIP      | AI Corrupt   | Bikini Plus   | Score     | Download                                                                                                | pattern_0_0                                   | pattern_0_1                                   | portrait_0                                  | portrait_1                                  | portrait_2                                  | full_body_0                                   | full_body_1                                   | profile_0                                 | profile_1                                 | free_0                              | free_1                              | shorts                              | maid_0                              | maid_1                              | miko                            | yukata                              | suit                            | china                             | bikini_0                                | bikini_1                                | bikini_2                                | sit                           | squat                             | kneel                             | jump                            | crossed_arms                                    | angry                             | smile                             | cry                           | grin                            | n_lie_0                               | n_lie_1                               | n_stand_0                                 | n_stand_1                                 | n_stand_2                                 | n_sex_0                               | n_sex_1                               |
|-------:|--------:|:----------|:-------------|:--------------|:----------|:--------------------------------------------------------------------------------------------------------|:----------------------------------------------|:----------------------------------------------|:--------------------------------------------|:--------------------------------------------|:--------------------------------------------|:----------------------------------------------|:----------------------------------------------|:------------------------------------------|:------------------------------------------|:------------------------------------|:------------------------------------|:------------------------------------|:------------------------------------|:------------------------------------|:--------------------------------|:------------------------------------|:--------------------------------|:----------------------------------|:----------------------------------------|:----------------------------------------|:----------------------------------------|:------------------------------|:----------------------------------|:----------------------------------|:--------------------------------|:------------------------------------------------|:----------------------------------|:----------------------------------|:------------------------------|:--------------------------------|:--------------------------------------|:--------------------------------------|:------------------------------------------|:------------------------------------------|:------------------------------------------|:--------------------------------------|:--------------------------------------|
|   1140 |      31 | **0.875** | 0.944        | 0.836         | **0.719** | [Download](https://huggingface.co/CyberHarem/pk_girlsfrontline/resolve/main/1140/pk_girlsfrontline.zip) | ![pattern_0_0](1140/previews/pattern_0_0.png) | ![pattern_0_1](1140/previews/pattern_0_1.png) | ![portrait_0](1140/previews/portrait_0.png) | ![portrait_1](1140/previews/portrait_1.png) | ![portrait_2](1140/previews/portrait_2.png) | ![full_body_0](1140/previews/full_body_0.png) | ![full_body_1](1140/previews/full_body_1.png) | ![profile_0](1140/previews/profile_0.png) | ![profile_1](1140/previews/profile_1.png) | ![free_0](1140/previews/free_0.png) | ![free_1](1140/previews/free_1.png) | ![shorts](1140/previews/shorts.png) | ![maid_0](1140/previews/maid_0.png) | ![maid_1](1140/previews/maid_1.png) | ![miko](1140/previews/miko.png) | ![yukata](1140/previews/yukata.png) | ![suit](1140/previews/suit.png) | ![china](1140/previews/china.png) | ![bikini_0](1140/previews/bikini_0.png) | ![bikini_1](1140/previews/bikini_1.png) | ![bikini_2](1140/previews/bikini_2.png) | ![sit](1140/previews/sit.png) | ![squat](1140/previews/squat.png) | ![kneel](1140/previews/kneel.png) | ![jump](1140/previews/jump.png) | ![crossed_arms](1140/previews/crossed_arms.png) | ![angry](1140/previews/angry.png) | ![smile](1140/previews/smile.png) | ![cry](1140/previews/cry.png) | ![grin](1140/previews/grin.png) | ![n_lie_0](1140/previews/n_lie_0.png) | ![n_lie_1](1140/previews/n_lie_1.png) | ![n_stand_0](1140/previews/n_stand_0.png) | ![n_stand_1](1140/previews/n_stand_1.png) | ![n_stand_2](1140/previews/n_stand_2.png) | ![n_sex_0](1140/previews/n_sex_0.png) | ![n_sex_1](1140/previews/n_sex_1.png) |
|    570 |      16 | 0.849     | 0.957        | **0.846**     | 0.706     | [Download](https://huggingface.co/CyberHarem/pk_girlsfrontline/resolve/main/570/pk_girlsfrontline.zip)  | ![pattern_0_0](570/previews/pattern_0_0.png)  | ![pattern_0_1](570/previews/pattern_0_1.png)  | ![portrait_0](570/previews/portrait_0.png)  | ![portrait_1](570/previews/portrait_1.png)  | ![portrait_2](570/previews/portrait_2.png)  | ![full_body_0](570/previews/full_body_0.png)  | ![full_body_1](570/previews/full_body_1.png)  | ![profile_0](570/previews/profile_0.png)  | ![profile_1](570/previews/profile_1.png)  | ![free_0](570/previews/free_0.png)  | ![free_1](570/previews/free_1.png)  | ![shorts](570/previews/shorts.png)  | ![maid_0](570/previews/maid_0.png)  | ![maid_1](570/previews/maid_1.png)  | ![miko](570/previews/miko.png)  | ![yukata](570/previews/yukata.png)  | ![suit](570/previews/suit.png)  | ![china](570/previews/china.png)  | ![bikini_0](570/previews/bikini_0.png)  | ![bikini_1](570/previews/bikini_1.png)  | ![bikini_2](570/previews/bikini_2.png)  | ![sit](570/previews/sit.png)  | ![squat](570/previews/squat.png)  | ![kneel](570/previews/kneel.png)  | ![jump](570/previews/jump.png)  | ![crossed_arms](570/previews/crossed_arms.png)  | ![angry](570/previews/angry.png)  | ![smile](570/previews/smile.png)  | ![cry](570/previews/cry.png)  | ![grin](570/previews/grin.png)  | ![n_lie_0](570/previews/n_lie_0.png)  | ![n_lie_1](570/previews/n_lie_1.png)  | ![n_stand_0](570/previews/n_stand_0.png)  | ![n_stand_1](570/previews/n_stand_1.png)  | ![n_stand_2](570/previews/n_stand_2.png)  | ![n_sex_0](570/previews/n_sex_0.png)  | ![n_sex_1](570/previews/n_sex_1.png)  |
|    608 |      17 | 0.853     | **0.959**    | 0.841         | 0.704     | [Download](https://huggingface.co/CyberHarem/pk_girlsfrontline/resolve/main/608/pk_girlsfrontline.zip)  | ![pattern_0_0](608/previews/pattern_0_0.png)  | ![pattern_0_1](608/previews/pattern_0_1.png)  | ![portrait_0](608/previews/portrait_0.png)  | ![portrait_1](608/previews/portrait_1.png)  | ![portrait_2](608/previews/portrait_2.png)  | ![full_body_0](608/previews/full_body_0.png)  | ![full_body_1](608/previews/full_body_1.png)  | ![profile_0](608/previews/profile_0.png)  | ![profile_1](608/previews/profile_1.png)  | ![free_0](608/previews/free_0.png)  | ![free_1](608/previews/free_1.png)  | ![shorts](608/previews/shorts.png)  | ![maid_0](608/previews/maid_0.png)  | ![maid_1](608/previews/maid_1.png)  | ![miko](608/previews/miko.png)  | ![yukata](608/previews/yukata.png)  | ![suit](608/previews/suit.png)  | ![china](608/previews/china.png)  | ![bikini_0](608/previews/bikini_0.png)  | ![bikini_1](608/previews/bikini_1.png)  | ![bikini_2](608/previews/bikini_2.png)  | ![sit](608/previews/sit.png)  | ![squat](608/previews/squat.png)  | ![kneel](608/previews/kneel.png)  | ![jump](608/previews/jump.png)  | ![crossed_arms](608/previews/crossed_arms.png)  | ![angry](608/previews/angry.png)  | ![smile](608/previews/smile.png)  | ![cry](608/previews/cry.png)  | ![grin](608/previews/grin.png)  | ![n_lie_0](608/previews/n_lie_0.png)  | ![n_lie_1](608/previews/n_lie_1.png)  | ![n_stand_0](608/previews/n_stand_0.png)  | ![n_stand_1](608/previews/n_stand_1.png)  | ![n_stand_2](608/previews/n_stand_2.png)  | ![n_sex_0](608/previews/n_sex_0.png)  | ![n_sex_1](608/previews/n_sex_1.png)  |
|   1254 |      34 | 0.851     | 0.919        | 0.839         | 0.699     | [Download](https://huggingface.co/CyberHarem/pk_girlsfrontline/resolve/main/1254/pk_girlsfrontline.zip) | ![pattern_0_0](1254/previews/pattern_0_0.png) | ![pattern_0_1](1254/previews/pattern_0_1.png) | ![portrait_0](1254/previews/portrait_0.png) | ![portrait_1](1254/previews/portrait_1.png) | ![portrait_2](1254/previews/portrait_2.png) | ![full_body_0](1254/previews/full_body_0.png) | ![full_body_1](1254/previews/full_body_1.png) | ![profile_0](1254/previews/profile_0.png) | ![profile_1](1254/previews/profile_1.png) | ![free_0](1254/previews/free_0.png) | ![free_1](1254/previews/free_1.png) | ![shorts](1254/previews/shorts.png) | ![maid_0](1254/previews/maid_0.png) | ![maid_1](1254/previews/maid_1.png) | ![miko](1254/previews/miko.png) | ![yukata](1254/previews/yukata.png) | ![suit](1254/previews/suit.png) | ![china](1254/previews/china.png) | ![bikini_0](1254/previews/bikini_0.png) | ![bikini_1](1254/previews/bikini_1.png) | ![bikini_2](1254/previews/bikini_2.png) | ![sit](1254/previews/sit.png) | ![squat](1254/previews/squat.png) | ![kneel](1254/previews/kneel.png) | ![jump](1254/previews/jump.png) | ![crossed_arms](1254/previews/crossed_arms.png) | ![angry](1254/previews/angry.png) | ![smile](1254/previews/smile.png) | ![cry](1254/previews/cry.png) | ![grin](1254/previews/grin.png) | ![n_lie_0](1254/previews/n_lie_0.png) | ![n_lie_1](1254/previews/n_lie_1.png) | ![n_stand_0](1254/previews/n_stand_0.png) | ![n_stand_1](1254/previews/n_stand_1.png) | ![n_stand_2](1254/previews/n_stand_2.png) | ![n_sex_0](1254/previews/n_sex_0.png) | ![n_sex_1](1254/previews/n_sex_1.png) |
|    798 |      22 | 0.853     | 0.921        | 0.834         | 0.693     | [Download](https://huggingface.co/CyberHarem/pk_girlsfrontline/resolve/main/798/pk_girlsfrontline.zip)  | ![pattern_0_0](798/previews/pattern_0_0.png)  | ![pattern_0_1](798/previews/pattern_0_1.png)  | ![portrait_0](798/previews/portrait_0.png)  | ![portrait_1](798/previews/portrait_1.png)  | ![portrait_2](798/previews/portrait_2.png)  | ![full_body_0](798/previews/full_body_0.png)  | ![full_body_1](798/previews/full_body_1.png)  | ![profile_0](798/previews/profile_0.png)  | ![profile_1](798/previews/profile_1.png)  | ![free_0](798/previews/free_0.png)  | ![free_1](798/previews/free_1.png)  | ![shorts](798/previews/shorts.png)  | ![maid_0](798/previews/maid_0.png)  | ![maid_1](798/previews/maid_1.png)  | ![miko](798/previews/miko.png)  | ![yukata](798/previews/yukata.png)  | ![suit](798/previews/suit.png)  | ![china](798/previews/china.png)  | ![bikini_0](798/previews/bikini_0.png)  | ![bikini_1](798/previews/bikini_1.png)  | ![bikini_2](798/previews/bikini_2.png)  | ![sit](798/previews/sit.png)  | ![squat](798/previews/squat.png)  | ![kneel](798/previews/kneel.png)  | ![jump](798/previews/jump.png)  | ![crossed_arms](798/previews/crossed_arms.png)  | ![angry](798/previews/angry.png)  | ![smile](798/previews/smile.png)  | ![cry](798/previews/cry.png)  | ![grin](798/previews/grin.png)  | ![n_lie_0](798/previews/n_lie_0.png)  | ![n_lie_1](798/previews/n_lie_1.png)  | ![n_stand_0](798/previews/n_stand_0.png)  | ![n_stand_1](798/previews/n_stand_1.png)  | ![n_stand_2](798/previews/n_stand_2.png)  | ![n_sex_0](798/previews/n_sex_0.png)  | ![n_sex_1](798/previews/n_sex_1.png)  |

## Anything Else?

Because the automation of LoRA training always annoys some people. So for the following groups, it is not recommended to use this model and we express regret:
1. Individuals who cannot tolerate any deviations from the original character design, even in the slightest detail.
2. Individuals who are facing the application scenarios with high demands for accuracy in recreating character outfits.
3. Individuals who cannot accept the potential randomness in AI-generated images based on the Stable Diffusion algorithm.
4. Individuals who are not comfortable with the fully automated process of training character models using LoRA, or those who believe that training character models must be done purely through manual operations to avoid disrespecting the characters.
5. Individuals who finds the generated image content offensive to their values.

## All Steps

We uploaded the files in all steps. you can check the images, metrics and download them in the following links: 
* [Steps From 1178 to 1520](all/0.md)
* [Steps From 798 to 1140](all/1.md)
* [Steps From 418 to 760](all/2.md)
* [Steps From 38 to 380](all/3.md)
