Instructions to use peteromallet/Qwen-Image-Edit-InSubject with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use peteromallet/Qwen-Image-Edit-InSubject 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-InSubject") 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
- Local Apps Settings
- Draw Things
Download InSubject-0.5.safetensors from peteromallet/Qwen-Image-Edit-InSubject: direct link, hf CLI and curl.
- Browser
- Download file 148 MB
-
https://huggingface.co/peteromallet/Qwen-Image-Edit-InSubject/resolve/main/InSubject-0.5.safetensors
- Command line
-
hf download hf://peteromallet/Qwen-Image-Edit-InSubject/InSubject-0.5.safetensors
-
curl -L -o InSubject-0.5.safetensors https://huggingface.co/peteromallet/Qwen-Image-Edit-InSubject/resolve/main/InSubject-0.5.safetensors
148 MB
- Xet hash:
- 5792ea936a2a9efad859ad1218c4f637592783aeadca69bdc731aefb5198f166
- Size of remote file:
- 148 MB
- SHA256:
- 4625cec72a7cef67fe844eae744b68144d03ac53b353fd3c0690fe024f084bdd
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.