Instructions to use fal/Broccoli-Hair-Kontext-Dev-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fal/Broccoli-Hair-Kontext-Dev-LoRA with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("fal/Broccoli-Hair-Kontext-Dev-LoRA") prompt = "Change hair to a broccoli haircut" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,17 +11,27 @@ license: other
|
|
| 11 |
license_name: flux1-dev-non-commercial-license
|
| 12 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/main/LICENSE.md
|
| 13 |
widget:
|
| 14 |
-
- text:
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
---
|
| 27 |
# Broccoli haircut Kontext Dev LoRA
|
|
|
|
| 11 |
license_name: flux1-dev-non-commercial-license
|
| 12 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/main/LICENSE.md
|
| 13 |
widget:
|
| 14 |
+
- text: Change hair to a broccoli haircut
|
| 15 |
+
output:
|
| 16 |
+
url: images/1.jpeg
|
| 17 |
+
- src: inputs/1.jpg
|
| 18 |
+
prompt: Change hair to a broccoli haircut
|
| 19 |
+
output:
|
| 20 |
+
url: images/1.jpeg
|
| 21 |
+
- text: Change hair to a broccoli haircut
|
| 22 |
+
output:
|
| 23 |
+
url: images/2.jpeg
|
| 24 |
+
- src: inputs/2.jpg
|
| 25 |
+
prompt: Change hair to a broccoli haircut
|
| 26 |
+
output:
|
| 27 |
+
url: images/2.jpeg
|
| 28 |
+
- text: Change hair to a broccoli haircut
|
| 29 |
+
output:
|
| 30 |
+
url: images/3.png
|
| 31 |
+
- src: inputs/3.jpg
|
| 32 |
+
prompt: Change hair to a broccoli haircut
|
| 33 |
+
output:
|
| 34 |
+
url: images/3.png
|
| 35 |
|
| 36 |
---
|
| 37 |
# Broccoli haircut Kontext Dev LoRA
|