跳到正文
实时
蚂蚁 inclusionAI · Hugging Face 新模型·· 9 天前

inclusionAI/Ming-Image-0.2-Design-Layer 发布:新增角色绑定分解与边界框引导分解功能

inclusionAI/Ming-Image-0.2-Design-Layer

要点速览

inclusionAI/Ming-Image-0.2-Design-Layer 升级了可编辑 RGBA 分解能力,新增 2D 角色绑定分解(将角色插画分离为语义、遮挡顺序的身体和服装部分)和边界框引导分解(直接从归一化 xyxy 框提取指定前景元素),参数规模 6B,基于 Hugging Face 开源,部署推荐使用 vLLM-Omni。

正文

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:

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

Ming-Image-0.2-Design-Layer general graphic-design layer decomposition showcase
General design decomposition
Decomposing editorial posters, e-commerce visuals, architectural graphics, and structured layouts into clean, independently editable RGBA layers.

Ming-Image-0.2-Design-Layer 2D character-rigging decomposition showcase
Character-rigging decomposition
Separating headwear, hair, eyewear, facial features, limbs, garments, and background in front-to-back occlusion order for 2D animation.

Ming-Image-0.2-Design-Layer bounding-box-guided decomposition showcase
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.

来源: 蚂蚁 inclusionAI · Hugging Face 新模型 · huggingface.co