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.
Most of the instruction pairs have red outlines around the desired subject, but other colors, as well as outline-less examples were trained as well. For best results, use:
"Create a black and white alpha mask of X, outlined in red. Leave everything else black"
The image pairs can be found here: https://huggingface.co/datasets/Notid/mask_pairs