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

prithivMLmods
/
Kontext-Unblur-Upscale

Image-to-Image
Diffusers
English
text-to-image
lora
template:diffusion-lora
Model card Files Files and versions
xet
Community

Instructions to use prithivMLmods/Kontext-Unblur-Upscale with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use prithivMLmods/Kontext-Unblur-Upscale 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("prithivMLmods/Kontext-Unblur-Upscale")
    
    prompt = "[photo content], upscale the low-quality image to 4K resolution, enhancing sharpness, clarity, and fine details while preserving the original texture, colors, lighting, and natural appearance. Remove noise, blur, and compression artifacts without over-smoothing or distorting facial or object features. Ensure realistic depth, balanced contrast, and accurate tones, achieving a high-definition, lifelike result that maintains the integrity of the original image."
    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
Kontext-Unblur-Upscale
613 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 13 commits
prithivMLmods's picture
prithivMLmods
Update README.md
2824237 verified 7 months ago
  • images
    Add 2 files 7 months ago
  • .gitattributes
    2.31 kB
    initial commit 7 months ago
  • Kontext-Image-Upscale.safetensors
    613 MB
    xet
    Add 2 files 7 months ago
  • README.md
    6.66 kB
    Update README.md 7 months ago