Instructions to use thedeoxen/refcontrol-flux-kontext-reference-canny-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use thedeoxen/refcontrol-flux-kontext-reference-canny-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("thedeoxen/refcontrol-flux-kontext-reference-canny-lora") 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,10 +4,10 @@ tags:
|
|
| 4 |
- lora
|
| 5 |
- diffusers
|
| 6 |
- template:diffusion-lora
|
| 7 |
-
|
| 8 |
base_model: black-forest-labs/FLUX.1-Kontext-dev
|
| 9 |
instance_prompt: null
|
| 10 |
license: apache-2.0
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
|
|
@@ -71,4 +71,4 @@ refcontrolcanny, change canny edges to photo with reference from left
|
|
| 71 |
- Scene composition based on silhouettes.
|
| 72 |
- Rapid prototyping of layouts and storyboards.
|
| 73 |
|
| 74 |
-
---
|
|
|
|
| 4 |
- lora
|
| 5 |
- diffusers
|
| 6 |
- template:diffusion-lora
|
|
|
|
| 7 |
base_model: black-forest-labs/FLUX.1-Kontext-dev
|
| 8 |
instance_prompt: null
|
| 9 |
license: apache-2.0
|
| 10 |
+
pipeline_tag: image-to-image
|
| 11 |
---
|
| 12 |
|
| 13 |
|
|
|
|
| 71 |
- Scene composition based on silhouettes.
|
| 72 |
- Rapid prototyping of layouts and storyboards.
|
| 73 |
|
| 74 |
+
---
|