|
Download README.md from inclusionAI/Ming-Image-0.2-Design-Layer: direct link, hf CLI and curl.
- Browser
- Download file 7.47 kB
-
https://huggingface.co/inclusionAI/Ming-Image-0.2-Design-Layer/resolve/main/README.md
- Command line
-
hf download hf://inclusionAI/Ming-Image-0.2-Design-Layer/README.md
-
curl -L -o README.md https://huggingface.co/inclusionAI/Ming-Image-0.2-Design-Layer/resolve/main/README.md
7.47 kB
| license: mit | |
| library_name: custom | |
| pipeline_tag: image-text-to-image | |
| inference: false | |
| tags: | |
| - image-text-to-image | |
| - layer-decomposition | |
| - rgba | |
| - graphic-design | |
| - character-rigging | |
| # 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](https://huggingface.co/inclusionAI/Ming-Image-0.2-Design-Layer)<br>[🧩 ModelScope](https://www.modelscope.cn/models/inclusionAI/Ming-Image-0.2-Design-Layer) | [Blog](https://mp.weixin.qq.com/s/fOt8GVj06-r3Srjf3-2fTg) | [Design](https://github.com/inclusionAI/ling-cookbook/tree/main/resources/recommended-skills/ling-ui-design) · [PPT](https://github.com/inclusionAI/ling-cookbook/tree/main/resources/recommended-skills/image-to-editable-ppt) | — | | |
| | Ming-Image-0.2-Design | Visual-design generation | 6B | [🤗 Hugging Face](https://huggingface.co/inclusionAI/Ming-Image-0.2-Design)<br>[🧩 ModelScope](https://www.modelscope.cn/models/inclusionAI/Ming-Image-0.2-Design) | [Blog](https://mp.weixin.qq.com/s/fOt8GVj06-r3Srjf3-2fTg) | [Design](https://github.com/inclusionAI/ling-cookbook/tree/main/resources/recommended-skills/ling-ui-design) · [PPT](https://github.com/inclusionAI/ling-cookbook/tree/main/resources/recommended-skills/image-to-editable-ppt) | — | | |
| | Ming-Image-0.1-Design | Visual-design generation | 6B | [🤗 Hugging Face](https://huggingface.co/inclusionAI/Ming-Image-0.1-Design)<br>[🧩 ModelScope](https://www.modelscope.cn/models/inclusionAI/Ming-Image-0.1-Design) | [Blog](https://mp.weixin.qq.com/s/VGdtxfM8kbHIQJw50VD_Sw) | [Design](https://github.com/inclusionAI/ling-cookbook/tree/main/resources/recommended-skills/ling-ui-design) · [PPT](https://github.com/inclusionAI/ling-cookbook/tree/main/resources/recommended-skills/image-to-editable-ppt) | [Try it](https://huggingface.co/spaces/hugging-apps/ming-image-0-1-design-demo) | | |
| | Ming-Image-0.1-Design-Layer | Editable layer decomposition | 6B | [🤗 Hugging Face](https://huggingface.co/inclusionAI/Ming-Image-0.1-Design-Layer)<br>[🧩 ModelScope](https://www.modelscope.cn/models/inclusionAI/Ming-Image-0.1-Design-Layer) | [Blog](https://mp.weixin.qq.com/s/VGdtxfM8kbHIQJw50VD_Sw) | [Design](https://github.com/inclusionAI/ling-cookbook/tree/main/resources/recommended-skills/ling-ui-design) · [PPT](https://github.com/inclusionAI/ling-cookbook/tree/main/resources/recommended-skills/image-to-editable-ppt) | [Try it](https://huggingface.co/spaces/Xiaolong-Wang/Ming-Image-0.1-Design-Layer) | | |
| ## Quick Start | |
| Use the companion [Ming-Image repository](https://github.com/inclusionAI/Ming-Image) | |
| for installation and inference: | |
| ```bash | |
| git clone https://github.com/inclusionAI/Ming-Image | |
| cd Ming-Image | |
| pip install -r requirements.txt | |
| ``` | |
| ### 1. General design decomposition | |
| ```bash | |
| 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](https://github.com/inclusionAI/Ming-Image#character-rigging-prompt-rewriting), | |
| then decompose into editable RGBA parts: | |
| ```bash | |
| 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`](https://github.com/inclusionAI/Ming-Image/blob/main/assets/layer_samples/bbox_prompt.txt)): | |
| ```bash | |
| 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](https://github.com/inclusionAI/Ming-Image#layer-decomposition-prompt-rewriting). | |
| ## Deployment | |
| We recommend the following inference frameworks to serve the model: | |
| - vLLM-Omni: see the [recipes](https://github.com/vllm-project/vllm-omni/blob/main/recipes/inclusionAI/Ming-Image.md) | |
| and [installation guide](https://docs.vllm.ai/projects/vllm-omni/en/latest/getting_started/quickstart/). | |
| ## 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 | |
| <p align="center"> | |
| <a href="assets/ming-image-0.2-design-layer-poster.webp"><img src="assets/ming-image-0.2-design-layer-poster.webp" width="75%" alt="Ming-Image-0.2-Design-Layer general graphic-design layer decomposition showcase"></a><br> | |
| <strong>General design decomposition</strong><br> | |
| Decomposing editorial posters, e-commerce visuals, architectural graphics, and structured layouts into clean, independently editable RGBA layers. | |
| </p> | |
| <p align="center"> | |
| <a href="assets/ming-image-0.2-design-layer-rigging.webp"><img src="assets/ming-image-0.2-design-layer-rigging.webp" width="75%" alt="Ming-Image-0.2-Design-Layer 2D character-rigging decomposition showcase"></a><br> | |
| <strong>Character-rigging decomposition</strong><br> | |
| Separating headwear, hair, eyewear, facial features, limbs, garments, and background in front-to-back occlusion order for 2D animation. | |
| </p> | |
| <p align="center"> | |
| <a href="assets/ming-image-0.2-design-layer-bbox.webp"><img src="assets/ming-image-0.2-design-layer-bbox.webp" width="75%" alt="Ming-Image-0.2-Design-Layer bounding-box-guided decomposition showcase"></a><br> | |
| <strong>Bounding-box-guided decomposition (no PE)</strong><br> | |
| Extracting overlapping foreground objects directly from normalized <code>0–999</code> <code>xyxy</code> bounding boxes. | |
| </p> | |
| ## License | |
| This model is released under the [MIT License](./LICENSE). | |