Image-to-Image
Diffusers
Pruna AI
qwen
qwen-image
image-editing
object-removal
inpainting
lora
distilled
few-step
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
Ctrl+K
- 422 kB xet
- 342 kB xet
- 326 kB xet
- 342 kB xet
- 270 kB xet
- 260 kB xet
- 379 kB xet
- 299 kB xet
- 274 kB xet
- 139 kB xet
- 94.7 kB
- 65 kB
- 300 kB xet
- 237 kB xet
- 226 kB xet
- 336 kB xet
- 269 kB xet
- 260 kB xet
- 327 kB xet
- 264 kB xet
- 255 kB xet
- 199 kB xet
- 154 kB xet
- 159 kB xet
- 272 kB xet
- 209 kB xet
- 204 kB xet
- 399 kB xet
- 316 kB xet
- 293 kB xet
- 374 kB xet
- 307 kB xet
- 308 kB xet
- 102 kB xet
- 75.2 kB
- 70 kB
- 222 kB xet
- 164 kB xet
- 157 kB xet
- 150 kB xet
- 145 kB xet
- 145 kB xet
- 139 kB xet
- 106 kB xet
- 107 kB xet
- 183 kB xet
- 133 kB xet
- 113 kB xet
- 222 kB xet
- 163 kB xet