Instructions to use peteromallet/Flux-Kontext-InScene with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use peteromallet/Flux-Kontext-InScene 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("peteromallet/Flux-Kontext-InScene") prompt = "Turn this cat into a dog" 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 Settings
- Draw Things
Add tags (#1)
Browse files- Add tags (a45573d4b03e143c07109160fdd1fc561ae88e62)
Co-authored-by: Apolinário from multimodal AI art <multimodalart@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -7,6 +7,9 @@ base_model:
|
|
| 7 |
tags:
|
| 8 |
- image
|
| 9 |
- editing
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# InScene: Flux.1-Kontext.dev LoRA
|
|
|
|
| 7 |
tags:
|
| 8 |
- image
|
| 9 |
- editing
|
| 10 |
+
- lora
|
| 11 |
+
- diffusers
|
| 12 |
+
pipeline_tag: image-to-image
|
| 13 |
---
|
| 14 |
|
| 15 |
# InScene: Flux.1-Kontext.dev LoRA
|