Instructions to use ifnodoraemon/Kontext-Style-Loras with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ifnodoraemon/Kontext-Style-Loras 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("ifnodoraemon/Kontext-Style-Loras", dtype=torch.bfloat16, device_map="cuda") 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] - Notebooks
- Google Colab
- Kaggle
Ctrl+K
- 1.76 kB
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 18.6 kB
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 3.36 kB
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 359 MB xet
- 2.73 MB xet
- 2.15 MB xet
- 6.62 MB xet
- 2.09 MB xet