Instructions to use Owen777/Kontext-Style-Loras with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Owen777/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("Owen777/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
Could you recommend codes to train lora?
#1
by LanguageBind - opened
Thanks for your wonderful works, recently I also need train a customed kontext lora, So I am wonder that whether you open-source your training codes? Thanks!
I will release my training code soon.
btw, if we want to train kontext style lora, could you also recommend your training configuration? Thanks!
Could you share your training code? Thank you very much
+1, we are looking forward for your training code!
Yes, this is simply amazing work!