Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Qwen
/
Qwen-Image-Edit

Image-to-Image
Diffusers
Safetensors
English
Chinese
QwenImageEditPipeline
Model card Files Files and versions
xet
Community
49

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

  • Libraries
  • Diffusers

    How to use Qwen/Qwen-Image-Edit 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")
    
    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]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
Qwen-Image-Edit / transformer
40.9 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 1 commit
littlebird13's picture
littlebird13
Add files using upload-large-folder tool
0d86ef4 verified 9 months ago
  • config.json
    339 Bytes
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model-00001-of-00009.safetensors
    4.99 GB
    xet
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model-00002-of-00009.safetensors
    4.98 GB
    xet
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model-00003-of-00009.safetensors
    4.95 GB
    xet
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model-00004-of-00009.safetensors
    4.98 GB
    xet
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model-00005-of-00009.safetensors
    4.95 GB
    xet
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model-00006-of-00009.safetensors
    4.95 GB
    xet
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model-00007-of-00009.safetensors
    4.91 GB
    xet
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model-00008-of-00009.safetensors
    4.98 GB
    xet
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model-00009-of-00009.safetensors
    1.17 GB
    xet
    Add files using upload-large-folder tool 9 months ago
  • diffusion_pytorch_model.safetensors.index.json
    199 kB
    Add files using upload-large-folder tool 9 months ago