Instructions to use AliveAi/Krea-2-Edit-Outfit-Transfer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AliveAi/Krea-2-Edit-Outfit-Transfer 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", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("AliveAi/Krea-2-Edit-Outfit-Transfer") prompt = "blonde woman with dark roots, sitting on bench, transfer the outfit" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,36 +6,86 @@ tags:
|
|
| 6 |
- template:diffusion-lora
|
| 7 |
widget:
|
| 8 |
- output:
|
| 9 |
-
url: images/
|
| 10 |
text: blonde woman with dark roots, sitting on bench, transfer the outfit
|
| 11 |
- output:
|
| 12 |
-
url: images/
|
| 13 |
text: blonde woman with dark roots, sitting on bench, transfer the outfit
|
| 14 |
- output:
|
| 15 |
-
url: images/
|
| 16 |
-
text:
|
| 17 |
- output:
|
| 18 |
-
url: images/
|
| 19 |
-
text:
|
| 20 |
base_model: krea/Krea-2-Raw
|
| 21 |
instance_prompt: edit, outfit, clothes
|
| 22 |
|
| 23 |
---
|
| 24 |
# Krea 2 Edit Outfit Transfer
|
| 25 |
|
|
|
|
|
|
|
| 26 |
<Gallery />
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
|
| 33 |
-
|
|
|
|
| 34 |
|
| 35 |
-
|
| 36 |
|
|
|
|
| 37 |
|
| 38 |
-
##
|
| 39 |
|
|
|
|
| 40 |
|
| 41 |
-
|
|
|
|
| 6 |
- template:diffusion-lora
|
| 7 |
widget:
|
| 8 |
- output:
|
| 9 |
+
url: images/demo1.png
|
| 10 |
text: blonde woman with dark roots, sitting on bench, transfer the outfit
|
| 11 |
- output:
|
| 12 |
+
url: images/demo2.webp
|
| 13 |
text: blonde woman with dark roots, sitting on bench, transfer the outfit
|
| 14 |
- output:
|
| 15 |
+
url: images/demo3.png
|
| 16 |
+
text: asian woman sitting on tree
|
| 17 |
- output:
|
| 18 |
+
url: images/demo4.png
|
| 19 |
+
text: arab woman sitting near pyramid entrance
|
| 20 |
base_model: krea/Krea-2-Raw
|
| 21 |
instance_prompt: edit, outfit, clothes
|
| 22 |
|
| 23 |
---
|
| 24 |
# Krea 2 Edit Outfit Transfer
|
| 25 |
|
| 26 |
+
LoRA for **Krea 2 Edit** that enables outfit transfer from a reference image.
|
| 27 |
+
|
| 28 |
<Gallery />
|
| 29 |
|
| 30 |
+
## Features
|
| 31 |
+
|
| 32 |
+
- Transfer clothing from a reference image
|
| 33 |
+
- Works with Krea 2 Edit workflows
|
| 34 |
+
- Preserves the generated character while applying the reference outfit
|
| 35 |
+
- Best results with female outfits
|
| 36 |
+
|
| 37 |
+
## Trigger
|
| 38 |
+
|
| 39 |
+
Include the following phrase in your prompt:
|
| 40 |
+
|
| 41 |
+
```
|
| 42 |
+
transfer the outfit
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
Example:
|
| 46 |
+
|
| 47 |
+
```
|
| 48 |
+
blonde woman with dark roots, sitting on a park bench, transfer the outfit
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Requirements
|
| 52 |
+
|
| 53 |
+
This LoRA requires one of the following custom ComfyUI nodes:
|
| 54 |
+
|
| 55 |
+
- https://github.com/lbouaraba/comfyui-krea2edit
|
| 56 |
+
- https://github.com/ostris/ComfyUI-Krea2-Ostris-Edit
|
| 57 |
+
|
| 58 |
+
It also requires outfit reference images in the expected format.
|
| 59 |
+
|
| 60 |
+
Example dataset:
|
| 61 |
+
|
| 62 |
+
https://huggingface.co/datasets/AliveAi/outfits
|
| 63 |
+
|
| 64 |
+
## Workflows
|
| 65 |
+
|
| 66 |
+
Two workflows are provided:
|
| 67 |
+
|
| 68 |
+
- **t2i_outfit_reference.json**
|
| 69 |
+
- Uses `comfyui-krea2edit`
|
| 70 |
+
- Best outfit accuracy
|
| 71 |
+
- Slower
|
| 72 |
|
| 73 |
+
- **Krea2_Ostris_Edit_outfit.json**
|
| 74 |
+
- Uses `ComfyUI-Krea2-Ostris-Edit`
|
| 75 |
+
- Much faster
|
| 76 |
+
- Slightly lower outfit adherence
|
| 77 |
|
| 78 |
+
## Known Limitations
|
| 79 |
|
| 80 |
+
- Primarily trained on female outfits.
|
| 81 |
+
- May occasionally generate two people. If this happens, try a different seed or explicitly prompt for a **single person**.
|
| 82 |
|
| 83 |
+
## Download
|
| 84 |
|
| 85 |
+
Download the latest model from the **Files & versions** tab.
|
| 86 |
|
| 87 |
+
## Tip
|
| 88 |
|
| 89 |
+
Need outfit reference images? You can generate them with **[AliveAI.app](https://aliveai.app)**.
|
| 90 |
|
| 91 |
+
If you prefer a web-based experience, the complete outfit transfer workflow is also available directly on AliveAI.app.
|