Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ovi054
/
Draw2Photo-Kontext-LoRA

Image-to-Image
Diffusers
flux
text-to-image
lora
fal
Model card Files Files and versions
xet
Community

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
Draw2Photo-Kontext-LoRA / examples
1.54 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
ovi054's picture
ovi054
Upload 4 files
f038d61 verified 8 months ago
  • 01i.jpg
    53.5 kB
    Upload 16 files 8 months ago
  • 01o.jpg
    104 kB
    xet
    Upload 16 files 8 months ago
  • 02i.jpg
    72.9 kB
    Upload 16 files 8 months ago
  • 02o.jpg
    135 kB
    xet
    Upload 16 files 8 months ago
  • 03i.jpg
    31.9 kB
    Upload 16 files 8 months ago
  • 03o.jpg
    123 kB
    xet
    Upload 16 files 8 months ago
  • 04i.jpg
    44.8 kB
    Upload 16 files 8 months ago
  • 04o.jpg
    63.5 kB
    Upload 16 files 8 months ago
  • 06i.jpg
    20.3 kB
    Upload 16 files 8 months ago
  • 06o.jpg
    71.9 kB
    Upload 16 files 8 months ago
  • 07i.jpg
    62 kB
    Upload 16 files 8 months ago
  • 07o.jpg
    125 kB
    xet
    Upload 16 files 8 months ago
  • 08i.jpg
    24.6 kB
    Upload 16 files 8 months ago
  • 08o.jpg
    93.3 kB
    Upload 16 files 8 months ago
  • 09i.jpg
    22.9 kB
    Upload 16 files 8 months ago
  • 09o.jpg
    98.2 kB
    Upload 16 files 8 months ago
  • 10i.jpg
    53.6 kB
    Upload 4 files 8 months ago
  • 10o.jpg
    85.7 kB
    Upload 4 files 8 months ago
  • 11i.jpg
    131 kB
    xet
    Upload 4 files 8 months ago
  • 11o.jpg
    122 kB
    xet
    Upload 4 files 8 months ago
  • blank.txt
    0 Bytes
    Upload folder using huggingface_hub 8 months ago