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

  • Log In
  • Sign Up

PrunaAI
/
P-Q-Image-2.1-Remove-Object

Image-to-Image
Diffusers
Pruna AI
qwen
qwen-image
image-editing
object-removal
inpainting
lora
distilled
few-step
Model card Files Files and versions
xet
Community

Instructions to use PrunaAI/P-Q-Image-2.1-Remove-Object with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use PrunaAI/P-Q-Image-2.1-Remove-Object 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("Qwen/Qwen-Image-2.1", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("PrunaAI/P-Q-Image-2.1-Remove-Object")
    
    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]
  • Pruna AI

    How to use PrunaAI/P-Q-Image-2.1-Remove-Object with Pruna AI:

    from pruna import PrunaModel
    pip install -U diffusers transformers accelerate
    from pruna import PrunaModel
    import torch
    from diffusers.utils import load_image
    # switch to "mps" for apple devices
    pipe = PrunaModel.from_pretrained("Qwen/Qwen-Image-2.1", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("PrunaAI/P-Q-Image-2.1-Remove-Object")
    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
  • Local Apps Settings
  • Draw Things
P-Q-Image-2.1-Remove-Object
539 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
gsprochette's picture
gsprochette
P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples
fa5b4fe 2 days ago
  • assets
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago
  • examples
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago
  • .gitattributes
    4.63 kB
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago
  • LICENSE
    7.83 kB
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago
  • NOTICE
    207 Bytes
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago
  • README.md
    29.4 kB
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago
  • draw_outline.py
    2.03 kB
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago
  • p_q_image_2.1_remove_object_6_steps_v0.1.safetensors
    168 MB
    xet
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago
  • p_q_image_2.1_remove_object_8_steps_v0.1.safetensors
    168 MB
    xet
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago
  • p_q_image_2.1_remove_object_base_v0.1.safetensors
    168 MB
    xet
    P-Q-Image-2.1-Remove-Object v0.1: LoRAs, model card, examples 2 days ago