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] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things

- Xet hash:
- 086d9287ba119ab6c3098c8961639d2166aa284f453b60fecaf05575ea51d7cb
- Size of remote file:
- 821 kB
- SHA256:
- a6ce62b3479564a3a52dd8ee915cf5d3231411b74e182cf103bed069743c4284
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.