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

ilkerzgi
/
metallic-objects-kontext-dev-lora

Image-to-Image
Diffusers
English
flux
lora
fal
ilkerzgi
Model card Files Files and versions
xet
Community

Instructions to use ilkerzgi/metallic-objects-kontext-dev-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use ilkerzgi/metallic-objects-kontext-dev-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("ilkerzgi/metallic-objects-kontext-dev-lora")
    
    prompt = "Make it metallic with a black background and a 3D perspective"
    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
metallic-objects-kontext-dev-lora / images
609 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
ilkerzgi's picture
ilkerzgi
first commit
827c834 verified 11 months ago
  • input2.jpg
    10.2 kB
    first commit 11 months ago
  • input2.png
    7.27 kB
    first commit 11 months ago
  • input3.jpeg
    125 kB
    xet
    first commit 11 months ago
  • input5.jpg
    132 kB
    xet
    first commit 11 months ago
  • input7.jpg
    62 kB
    first commit 11 months ago
  • output2.jpeg
    25.5 kB
    first commit 11 months ago
  • output3.jpeg
    32.8 kB
    first commit 11 months ago
  • output5.jpeg
    113 kB
    xet
    first commit 11 months ago
  • output7.jpeg
    100 kB
    xet
    first commit 11 months ago