Instructions to use Notid/qwen-edit-2511-mask-extraction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Notid/qwen-edit-2511-mask-extraction with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2511", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Notid/qwen-edit-2511-mask-extraction") prompt = "Create a black and white alpha mask for the object with a red outline" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Mask extraction

- Prompt
- Create a black and white alpha mask for the object with a red outline

- Prompt
- Create a black and white alpha mask for the woman, excluding the pinecone

- Prompt
- Create a black and white alpha mask for the tree and its foliage
Model description
This LoRA is used to create high quality alpha masks from either an outlined entity (drawn or rectangular), or a description of the entity. Unlike SAM, this solution will emit grayscale masks, good for use in compositing. Unlike Qwen Image Layered, this process can be used to create masks of arbitrary resolution, using the qwen image edit 2511 model
V2 Version
Trained a new model with a much larger dataset. Specifically focusing on single images with different instructions to mask different elements from the image. Much better instruction following.
Example prompts:
- Create a black and white alpha mask of the bucket in the bottom left
- Create a black and white alpha mask of the object with the red outline
- Create a black and white alpha mask of the hat, excluding the man's head.
This LoRA was trained using this dataset, which was created using this toolset.
Trigger words
You should use Create a black and white alpha mask of the ... to trigger the image generation.
Download model
Download them in the Files & versions tab.
- Downloads last month
- -
Model tree for Notid/qwen-edit-2511-mask-extraction
Base model
Qwen/Qwen-Image-Edit-2511