Instructions to use aimalias/br13 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use aimalias/br13 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Raw", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("aimalias/br13") prompt = "A cinematic shot of a BR13 woman wearing futuristic neon armor, standing amidst the raining skyscrapers of a cyberpunk metropolis." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,75 +1,57 @@
|
|
| 1 |
---
|
| 2 |
-
base_model:
|
| 3 |
-
- krea/Krea-2-Turbo
|
| 4 |
-
- krea/Krea-2-Raw
|
| 5 |
-
library_name: diffusers
|
| 6 |
-
license: apache-2.0
|
| 7 |
-
instance_prompt: BR13 woman
|
| 8 |
-
widget: []
|
| 9 |
tags:
|
| 10 |
- text-to-image
|
| 11 |
-
- diffusers-training
|
| 12 |
- diffusers
|
| 13 |
- lora
|
| 14 |
- krea2
|
| 15 |
-
- krea2-diffusers
|
| 16 |
- template:sd-lora
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
-
|
| 20 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
# Krea 2 DreamBooth LoRA - aimalias/br13
|
| 24 |
|
| 25 |
<Gallery />
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
-
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
-
>>> import torch
|
| 47 |
-
>>> from diffusers import Krea2Pipeline
|
| 48 |
-
|
| 49 |
-
>>> # Load the LoRA onto Krea 2 Turbo (the distilled inference model)
|
| 50 |
-
>>> pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
|
| 51 |
-
>>> pipe.load_lora_weights("aimalias/br13")
|
| 52 |
-
|
| 53 |
-
>>> # Turbo recipe: 8 steps, no classifier-free guidance
|
| 54 |
-
>>> image = pipe("BR13 woman", num_inference_steps=8, guidance_scale=0.0).images[0]
|
| 55 |
-
>>> image.save("output.png")
|
| 56 |
-
```
|
| 57 |
|
| 58 |
-
|
| 59 |
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
```python
|
| 66 |
-
# TODO: add an example code snippet for running this diffusion pipeline
|
| 67 |
```
|
| 68 |
-
|
| 69 |
-
#### Limitations and bias
|
| 70 |
-
|
| 71 |
-
[TODO: provide examples of latent issues and potential remediations]
|
| 72 |
-
|
| 73 |
-
## Training details
|
| 74 |
-
|
| 75 |
-
[TODO: describe the data used to train the model]
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: krea/Krea-2-Raw
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
- text-to-image
|
|
|
|
| 5 |
- diffusers
|
| 6 |
- lora
|
| 7 |
- krea2
|
|
|
|
| 8 |
- template:sd-lora
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
instance_prompt: "BR13 woman"
|
| 11 |
+
widget:
|
| 12 |
+
- text: "A cinematic shot of a BR13 woman wearing futuristic neon armor, standing amidst the raining skyscrapers of a cyberpunk metropolis."
|
| 13 |
+
output:
|
| 14 |
+
url: sample_0.png
|
| 15 |
+
- text: "A soft, ethereal portrait of a BR13 woman draped in flowing silk, lounging in a sun-drenched Mediterranean garden filled with blooming white peonies."
|
| 16 |
+
output:
|
| 17 |
+
url: sample_1.png
|
| 18 |
+
- text: "A gritty, high-contrast image of a BR13 woman as a rugged wasteland survivor, leaning against a rusted vintage car in a vast, cracked salt flat."
|
| 19 |
+
output:
|
| 20 |
+
url: sample_2.png
|
| 21 |
---
|
| 22 |
|
| 23 |
+
# Krea 2 LoRA — aimalias/br13
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
<Gallery />
|
| 26 |
|
| 27 |
+
A DreamBooth-LoRA for **Krea 2**, trained on **Krea 2 RAW** and shown on **Krea 2 Turbo**. The samples below were generated with this LoRA on Turbo (8 steps).
|
| 28 |
|
| 29 |
+
## Trigger
|
| 30 |
|
| 31 |
+
Use the token `BR13 woman` to invoke the concept.
|
| 32 |
|
| 33 |
+
## Samples
|
| 34 |
|
| 35 |
+

|
| 36 |
|
| 37 |
+
> *"A cinematic shot of a BR13 woman wearing futuristic neon armor, standing amidst the raining skyscrapers of a cyberpunk metropolis."*
|
| 38 |
|
| 39 |
+

|
| 40 |
|
| 41 |
+
> *"A soft, ethereal portrait of a BR13 woman draped in flowing silk, lounging in a sun-drenched Mediterranean garden filled with blooming white peonies."*
|
| 42 |
|
| 43 |
+

|
| 44 |
|
| 45 |
+
> *"A gritty, high-contrast image of a BR13 woman as a rugged wasteland survivor, leaning against a rusted vintage car in a vast, cracked salt flat."*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
+
## Use it with diffusers
|
| 48 |
|
| 49 |
+
```py
|
| 50 |
+
import torch
|
| 51 |
+
from diffusers import Krea2Pipeline
|
| 52 |
|
| 53 |
+
pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
|
| 54 |
+
pipe.load_lora_weights("aimalias/br13")
|
| 55 |
+
image = pipe("A cinematic shot of a BR13 woman wearing futuristic neon armor, standing amidst the raining skyscrapers of a cyberpunk metropolis.", num_inference_steps=8, guidance_scale=0.0).images[0]
|
| 56 |
+
image.save("output.png")
|
|
|
|
|
|
|
| 57 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|