Instructions to use ovi054/Draw2Photo-Kontext-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ovi054/Draw2Photo-Kontext-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("ovi054/Draw2Photo-Kontext-LoRA") prompt = "make it real" 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
|
@@ -45,7 +45,7 @@ You should use `make it real` to trigger the image generation.
|
|
| 45 |
1. You need a drawing and a face
|
| 46 |
- Put face right top of the image
|
| 47 |
2. Add the trigger word `make it real` in your prompt.
|
| 48 |
-
3. Adjust LoRA weight (recommended **
|
| 49 |
|
| 50 |
## Try it Online / Demo Space
|
| 51 |
|
|
|
|
| 45 |
1. You need a drawing and a face
|
| 46 |
- Put face right top of the image
|
| 47 |
2. Add the trigger word `make it real` in your prompt.
|
| 48 |
+
3. Adjust LoRA weight (recommended **1.0**)
|
| 49 |
|
| 50 |
## Try it Online / Demo Space
|
| 51 |
|