Williechai commited on
Commit
eeffc94
·
verified ·
1 Parent(s): 6dba290

Add Layer model Quick Start

Browse files
Files changed (1) hide show
  1. README.md +27 -9
README.md CHANGED
@@ -14,20 +14,29 @@ tags:
14
  Ming-Image-0.1-Design-Layer decomposes a flattened design image into a
15
  requested number of RGBA layers using an image and a layer plan.
16
 
17
- ## Gallery
18
 
19
- <p align="center">
20
- <img src="./assets/showcase.webp" width="100%" alt="Ming-Image-0.1-Design-Layer decomposition example">
21
- </p>
22
 
23
- The example shows the input design, six decomposed layers, and the recomposed
24
- result.
 
 
25
 
26
- ## Usage
 
 
 
 
 
 
 
 
27
 
28
- Installation instructions, inference code, and a runnable
29
  [layer-decomposition demo](https://github.com/inclusionAI/Ming-Image#layer-decomposition-demo)
30
- are available in the Ming-Image repository.
31
 
32
  Prompt enhancement (PE) can use `Ling-3.0-flash-VL` or `qwen3.8-27B`; see
33
  [layer-decomposition prompt rewriting](https://github.com/inclusionAI/Ming-Image#layer-decomposition-prompt-rewriting).
@@ -46,6 +55,15 @@ Provide `--input-image` plus either a detailed layer specification through
46
  request. When `--prompt` is supplied, the layer count declared in that prompt
47
  controls the output count. The standalone outputs are saved as RGBA PNG files.
48
 
 
 
 
 
 
 
 
 
 
49
  ## License
50
 
51
  This model is released under the [MIT License](./LICENSE).
 
14
  Ming-Image-0.1-Design-Layer decomposes a flattened design image into a
15
  requested number of RGBA layers using an image and a layer plan.
16
 
17
+ ## Quick Start
18
 
19
+ Use the companion [Ming-Image repository](https://github.com/inclusionAI/Ming-Image)
20
+ for installation and inference:
 
21
 
22
+ ```bash
23
+ git clone https://github.com/inclusionAI/Ming-Image
24
+ cd Ming-Image
25
+ pip install -r requirements.txt
26
 
27
+ python infer.py \
28
+ --model inclusionAI/Ming-Image-0.1-Design-Layer \
29
+ --task layer-decompose \
30
+ --input-image assets/layer_samples/card_making_input.png \
31
+ --prompt assets/layer_samples/card_making_prompt.txt \
32
+ --attn-implementation flash_attention_2 \
33
+ --resolution 1024 \
34
+ --output-dir outputs/layers
35
+ ```
36
 
37
+ This runs the released six-layer card-making example. See the full
38
  [layer-decomposition demo](https://github.com/inclusionAI/Ming-Image#layer-decomposition-demo)
39
+ for the output structure and layer-count behavior.
40
 
41
  Prompt enhancement (PE) can use `Ling-3.0-flash-VL` or `qwen3.8-27B`; see
42
  [layer-decomposition prompt rewriting](https://github.com/inclusionAI/Ming-Image#layer-decomposition-prompt-rewriting).
 
55
  request. When `--prompt` is supplied, the layer count declared in that prompt
56
  controls the output count. The standalone outputs are saved as RGBA PNG files.
57
 
58
+ ## Gallery
59
+
60
+ <p align="center">
61
+ <img src="./assets/showcase.webp" width="100%" alt="Ming-Image-0.1-Design-Layer decomposition example">
62
+ </p>
63
+
64
+ The example shows the input design, six decomposed layers, and the recomposed
65
+ result.
66
+
67
  ## License
68
 
69
  This model is released under the [MIT License](./LICENSE).