inclusionAI/Ming-Image-0.2-Design-Layer
Captured source
source ↗Ming-Image-0.2-Design-Layer
Ming-Image-0.2-Design-Layer upgrades editable RGBA layer decomposition from Ming-Image-0.1-Design-Layer with two major new capabilities: 2D character-rigging decomposition (separating character illustrations into semantic, occlusion-ordered body and garment parts for downstream editing and animation) and bounding-box-guided decomposition (extracting specified foreground elements directly from normalized xyxy boxes without prompt rewriting). It uses the same inference code and sampling settings as the 0.1 release.
| Model | Task | Params (DiT) | Weights | Blog | Skills | Demo | | --- | --- | --- | --- | --- | --- | --- | | Ming-Image-0.2-Design-Layer | Editable layer decomposition | 6B | 🤗 Hugging Face 🧩 ModelScope | Blog | Design · PPT | — | | Ming-Image-0.2-Design | Visual-design generation | 6B | 🤗 Hugging Face 🧩 ModelScope | Blog | Design · PPT | — | | Ming-Image-0.1-Design | Visual-design generation | 6B | 🤗 Hugging Face 🧩 ModelScope | Blog | Design · PPT | Try it | | Ming-Image-0.1-Design-Layer | Editable layer decomposition | 6B | 🤗 Hugging Face 🧩 ModelScope | Blog | Design · PPT | Try it |
Quick Start
Use the companion Ming-Image repository for installation and inference:
git clone https://github.com/inclusionAI/Ming-Image cd Ming-Image pip install -r requirements.txt
1. General design decomposition
python infer.py \ --model inclusionAI/Ming-Image-0.2-Design-Layer \ --task layer-decompose \ --input-image assets/layer_samples/christmas_poster_input.png \ --prompt assets/layer_samples/christmas_poster_prompt.txt \ --attn-implementation flash_attention_2 \ --resolution 512 \ --output-dir outputs/layers
2. Character-rigging decomposition
Generate a semantic part plan with the character-rigging prompt rewriter, then decompose into editable RGBA parts:
python infer.py \ --model inclusionAI/Ming-Image-0.2-Design-Layer \ --task layer-decompose \ --input-image assets/layer_samples/rigging_input.png \ --prompt assets/layer_samples/rigging_prompt.txt \ --attn-implementation flash_attention_2 \ --resolution 512 \ --output-dir outputs/layers_rigging
3. Bounding-box-guided decomposition
Specify target boxes directly in normalized 0–999 xyxy coordinates on a 1000×1000 scale—no prompt rewriting is required (see `bbox_prompt.txt`):
python infer.py \ --model inclusionAI/Ming-Image-0.2-Design-Layer \ --task layer-decompose \ --input-image assets/layer_samples/bbox_input.png \ --prompt assets/layer_samples/bbox_prompt.txt \ --attn-implementation flash_attention_2 \ --resolution 512 \ --output-dir outputs/layers_bbox
Prompt enhancement (PE) for design and character-rigging decomposition can use Ling-3.2-flash or qwen3.8-27B; see layer-decomposition prompt rewriting.
Deployment
We recommend the following inference frameworks to serve the model:
- vLLM-Omni: see the recipes
and installation guide.
Recommended settings
- Working-resolution bucket: 512 or 1024. The output preserves the input
image's aspect ratio.
- Sampling steps: 12.
- CFG scale: 2.0.
- Precision: BF16.
- Hardware: one CUDA GPU with 80 GiB VRAM (validated configuration).
Provide --input-image plus either a detailed layer specification through --prompt, or omit --prompt and set --num-layers N to create the default request. When --prompt is supplied, the layer count declared in that prompt controls the output count. Standalone outputs are saved as RGBA PNG files.
Gallery
General design decomposition
Decomposing editorial posters, e-commerce visuals, architectural graphics, and structured layouts into clean, independently editable RGBA layers.
Character-rigging decomposition
Separating headwear, hair, eyewear, facial features, limbs, garments, and background in front-to-back occlusion order for 2D animation.
Bounding-box-guided decomposition (no PE)
Extracting overlapping foreground objects directly from normalized 0–999 xyxy bounding boxes.
License
This model is released under the [MIT License](./LICENSE).
Notability
notability 5.0/10Model release without traction data