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

peteromallet
/
Qwen-Image-Edit-InScene

Image-to-Image
Diffusers
image
editing
lora
scene-generation
qwen
Model card Files Files and versions
xet
Community
1

Instructions to use peteromallet/Qwen-Image-Edit-InScene with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use peteromallet/Qwen-Image-Edit-InScene 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-Edit", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("peteromallet/Qwen-Image-Edit-InScene")
    
    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
  • Draw Things
Qwen-Image-Edit-InScene
903 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
peteromallet's picture
peteromallet
Upload inscene-annotate-samples.png
b356dd7 verified 7 months ago
  • .gitattributes
    1.58 kB
    Upload inscene-annotate-samples.png 7 months ago
  • InScene-0.7.safetensors
    590 MB
    xet
    Upload InScene-0.7.safetensors 7 months ago
  • InScene-Annotate-0.4.safetensors
    307 MB
    xet
    Upload InScene-Annotate-0.4.safetensors 7 months ago
  • README.md
    31 Bytes
    initial commit 7 months ago
  • inscene-annotate-samples.png
    6.45 MB
    xet
    Upload inscene-annotate-samples.png 7 months ago