Instructions to use Qwen/Qwen-Image-Layered with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Qwen/Qwen-Image-Layered with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Layered", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -74,10 +74,10 @@ After decomposition, edits are applied exclusively to the target layer, physical
|
|
| 74 |
For example, we can recolor the first layer and keep all other content untouched:
|
| 75 |

|
| 76 |
|
| 77 |
-
We can also replace the second layer from a girl to a boy
|
| 78 |

|
| 79 |
|
| 80 |
-
Here, we revise the text to "Qwen-Image":
|
| 81 |

|
| 82 |
|
| 83 |
Furthermore, the layered structure naturally supports elemetary operations. For example, we can delete unwanted objects cleanly:
|
|
|
|
| 74 |
For example, we can recolor the first layer and keep all other content untouched:
|
| 75 |

|
| 76 |
|
| 77 |
+
We can also replace the second layer from a girl to a boy (The target layer is edited using Qwen-Image-Edit):
|
| 78 |

|
| 79 |
|
| 80 |
+
Here, we revise the text to "Qwen-Image" (The target layer is edited using Qwen-Image-Edit):
|
| 81 |

|
| 82 |
|
| 83 |
Furthermore, the layered structure naturally supports elemetary operations. For example, we can delete unwanted objects cleanly:
|