liyangbing commited on
Commit
f81b395
·
1 Parent(s): c390a9c

Update website with Qwen-Image-Edit content and WaveSpeed links

Browse files
Files changed (2) hide show
  1. README.md +7 -3
  2. index.html +75 -87
README.md CHANGED
@@ -1,11 +1,15 @@
1
  ---
2
  title: Qwen-Image-Edit
3
- emoji: 💻
4
  colorFrom: blue
5
  colorTo: gray
6
  sdk: static
7
  pinned: false
8
- short_description: Qwen-Image-Edit
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
1
  ---
2
  title: Qwen-Image-Edit
3
+ emoji: 🖼️
4
  colorFrom: blue
5
  colorTo: gray
6
  sdk: static
7
  pinned: false
8
+ short_description: Advanced image editing foundation model by Alibaba Cloud
9
  ---
10
 
11
+ # Qwen-Image-Edit
12
+
13
+ Qwen-Image-Edit is a powerful image editing foundation model in the Qwen series that achieves significant advances in transforming existing images with precise control. Experiments show strong capabilities in image-to-image generation, with exceptional performance in maintaining original image structure while applying creative transformations.
14
+
15
+ Check out the model on Hugging Face: https://huggingface.co/Qwen/Qwen-Image-Edit
index.html CHANGED
@@ -11,7 +11,8 @@
11
  <meta property="og:title" content="Qwen-Image Edit - Advanced Image-to-Image Generation by Alibaba Cloud" />
12
  <meta property="og:description" content="Transform your existing images into stunning new creations with Qwen-Image Edit, part of the Tongyi Qianwen model series developed by Alibaba Cloud" />
13
  <meta property="og:type" content="website" />
14
- <meta property="og:url" content="https://huggingface.co/Qwen/Qwen-Image-Edit" />
 
15
 
16
  <!-- Additional Meta Information -->
17
  <meta name="author" content="Alibaba Cloud Qwen Team" />
@@ -25,10 +26,10 @@
25
  <div class="nav-content">
26
  <div class="nav-logo">QWEN</div>
27
  <div class="nav-links">
28
- <a href="https://wavespeed.ai/models/wavespeed-ai/qwen-image/edit" class="nav-link" target="_blank" rel="noopener noreferrer">Home</a>
29
- <a href="https://wavespeed.ai/collections/qwen" class="nav-link" target="_blank" rel="noopener noreferrer">Documentation</a>
30
- <a href="https://wavespeed.ai/collections/qwen" class="nav-link" target="_blank" rel="noopener noreferrer">Blog</a>
31
- <a href="https://wavespeed.ai/models/wavespeed-ai/qwen-image/edit" class="nav-button" target="_blank" rel="noopener noreferrer">Visit WaveSpeedAI →</a>
32
  </div>
33
  </div>
34
  </nav>
@@ -41,9 +42,9 @@
41
  </div>
42
 
43
  <div class="announcement-section">
44
- <p class="announcement">Qwen-Image Edit is now available!</p>
45
  <div class="divider"></div>
46
- <p class="description">Open-source Advanced Image-to-Image Generative Model</p>
47
  </div>
48
 
49
  <div class="hero-image">
@@ -52,7 +53,7 @@
52
 
53
  <section class="intro-section">
54
  <h2>Introduction</h2>
55
- <p>We are thrilled to release Qwen-Image Edit, an image editing foundation model in the Qwen series that achieves significant advances in transforming existing images with precise control. Experiments show strong capabilities in image-to-image generation, with exceptional performance in maintaining original image structure while applying creative transformations.</p>
56
  <div class="benchmark-image">
57
  <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/bench.png" alt="Qwen-Image Benchmark" class="full-width-img">
58
  </div>
@@ -78,7 +79,44 @@
78
  <h2>Quick Start</h2>
79
  <p>Choose your preferred Qwen image model:</p>
80
 
81
- <h3>Option 1: Using the latest Qwen VLo model</h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  <p>The new Qwen VLo model specializes in image-to-image generation with progressive editing features.</p>
83
  <div class="code-block">
84
  <pre><code>pip install dashscope>=1.20.7</code></pre>
@@ -109,66 +147,6 @@ if response.status_code == 200:
109
  else:
110
  print(f'Failed to generate image: {response.message}')</code></pre>
111
  </div>
112
-
113
- <h3>Option 2: Using Qwen-Image Edit with diffusers</h3>
114
- <p>Install the latest version of diffusers</p>
115
- <div class="code-block">
116
- <pre><code>pip install git+https://github.com/huggingface/diffusers</code></pre>
117
- </div>
118
- <p>The following contains a code snippet illustrating how to use the model to generate images based on text prompts:</p>
119
- <div class="code-block">
120
- <pre><code>from diffusers import DiffusionPipeline
121
- import torch
122
-
123
- model_name = "Qwen/Qwen-Image-Edit"
124
-
125
- # Load the pipeline
126
- if torch.cuda.is_available():
127
- torch_dtype = torch.bfloat16
128
- device = "cuda"
129
- else:
130
- torch_dtype = torch.float32
131
- device = "cpu"
132
-
133
- pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
134
- pipe = pipe.to(device)
135
-
136
- positive_magic = {
137
- "en": "Ultra HD, 4K, cinematic composition.", # for english prompt
138
- "zh": "超清,4K,电影级构图" # for chinese prompt
139
- }
140
-
141
- # Load input image
142
- init_image = PIL.Image.open("input_image.jpg").convert("RGB")
143
-
144
- # Define editing prompt
145
- prompt = '''Transform this image into a watercolor painting with vibrant colors and artistic brush strokes. Ultra HD, 4K, cinematic composition'''
146
-
147
- negative_prompt = " "
148
-
149
- # Generate with different aspect ratios
150
- aspect_ratios = {
151
- "1:1": (1328, 1328),
152
- "16:9": (1664, 928),
153
- "9:16": (928, 1664),
154
- "4:3": (1472, 1140),
155
- "3:4": (1140, 1472)
156
- }
157
-
158
- width, height = aspect_ratios["16:9"]
159
-
160
- image = pipe(
161
- prompt=prompt + positive_magic["en"],
162
- negative_prompt=negative_prompt,
163
- image=init_image, # Input image for editing
164
- num_inference_steps=50,
165
- strength=0.75, # Control how much to transform the original image
166
- true_cfg_scale=4.0,
167
- generator=torch.Generator(device="cuda").manual_seed(42)
168
- ).images[0]
169
-
170
- image.save("example.png")</code></pre>
171
- </div>
172
  </section>
173
 
174
  <section class="showcase-section">
@@ -176,41 +154,51 @@ image.save("example.png")</code></pre>
176
 
177
  <div class="showcase-item-full">
178
  <div class="showcase-description-full">
179
- <h3>Superior Image Transformation</h3>
180
- <p>One of its standout capabilities is high-fidelity image transformation across diverse styles and contexts. Qwen-Image Edit preserves the essential structure and content of the original image while applying sophisticated transformations, maintaining coherence and contextual harmony with stunning accuracy. The editing isn't just superficial—it's intelligently integrated into the visual fabric.</p>
181
  </div>
182
  <div class="showcase-image-full">
183
- <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s1.jpg" alt="Text Rendering Example" class="showcase-img-full">
184
  </div>
185
  </div>
186
 
187
  <div class="showcase-item-full">
188
  <div class="showcase-description-full">
189
- <h3>Artistic Style Transfer</h3>
190
- <p>Qwen-Image Edit excels at style transfer with support for a wide range of artistic transformations. From converting photos to impressionist paintings, applying anime aesthetics to real-world scenes, or transforming images to minimalist designs, the model adapts fluidly to creative editing requirements, making it a versatile tool for artists, designers, and storytellers.</p>
191
  </div>
192
  <div class="showcase-image-full">
193
- <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s2.jpg" alt="Artistic Styles Example" class="showcase-img-full">
194
  </div>
195
  </div>
196
 
197
  <div class="showcase-item-full">
198
  <div class="showcase-description-full">
199
- <h3>Advanced Image Manipulation</h3>
200
- <p>As a specialized image editing model, Qwen-Image Edit goes far beyond simple adjustments. It enables advanced operations such as comprehensive style transfer, object insertion or removal, detail enhancement, background replacement, and even human pose manipulation—all with intuitive input and coherent output. This level of control brings professional-grade image transformation within reach of everyday users.</p>
201
  </div>
202
  <div class="showcase-image-full">
203
- <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s3.jpg" alt="Image Editing Example" class="showcase-img-full">
204
  </div>
205
  </div>
206
 
207
  <div class="showcase-item-full">
208
  <div class="showcase-description-full">
209
- <h3>Intelligent Image Analysis</h3>
210
- <p>Qwen-Image Edit doesn't just transform—it understands. It analyzes the input image through a suite of understanding tasks, including object detection, semantic segmentation, depth and edge (Canny) estimation, and structural analysis. These capabilities ensure that transformations respect the original image's key elements and structure, resulting in edits that feel natural and coherent, powered by deep visual comprehension.</p>
 
 
 
 
 
 
 
 
 
 
211
  </div>
212
  <div class="showcase-image-full">
213
- <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s4.jpg" alt="Image Understanding Example" class="showcase-img-full">
214
  </div>
215
  </div>
216
 
@@ -222,12 +210,12 @@ image.save("example.png")</code></pre>
222
  <div class="resource-links-section">
223
  <h2>Resources</h2>
224
  <div class="resource-links">
225
- <a href="https://huggingface.co/Qwen/Qwen-Image-Edit" target="_blank" rel="noopener noreferrer" class="resource-link">Qwen-Image Edit on Hugging Face</a>
226
- <a href="https://github.com/QwenLM/Qwen" target="_blank" rel="noopener noreferrer" class="resource-link">Qwen GitHub</a>
227
- <a href="https://www.alibabacloud.com/en/solutions/generative-ai/qwen" target="_blank" rel="noopener noreferrer" class="resource-link">Alibaba Cloud Qwen</a>
228
- <a href="https://modelscope.cn/models/qwen/Qwen-Image" target="_blank" rel="noopener noreferrer" class="resource-link">ModelScope</a>
229
- <a href="https://help.aliyun.com/zh/dashscope/developer-reference/qwen-vlo-quick-start" target="_blank" rel="noopener noreferrer" class="resource-link">Qwen VLo Documentation</a>
230
- <a href="https://www.alibabacloud.com/help/en/model-studio/vision/" target="_blank" rel="noopener noreferrer" class="resource-link">Qwen-VL Documentation</a>
231
  </div>
232
  </div>
233
  </div>
 
11
  <meta property="og:title" content="Qwen-Image Edit - Advanced Image-to-Image Generation by Alibaba Cloud" />
12
  <meta property="og:description" content="Transform your existing images into stunning new creations with Qwen-Image Edit, part of the Tongyi Qianwen model series developed by Alibaba Cloud" />
13
  <meta property="og:type" content="website" />
14
+ <meta property="og:url" content="https://wavespeed.ai/models/wavespeed-ai/qwen-image/edit" />
15
+ <meta property="og:image" content="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/merge3.jpg" />
16
 
17
  <!-- Additional Meta Information -->
18
  <meta name="author" content="Alibaba Cloud Qwen Team" />
 
26
  <div class="nav-content">
27
  <div class="nav-logo">QWEN</div>
28
  <div class="nav-links">
29
+ <a href="https://wavespeed.ai/" class="nav-link" target="_blank" rel="noopener noreferrer">Home</a>
30
+ <a href="https://wavespeed.ai/models/wavespeed-ai/qwen-image" class="nav-link" target="_blank" rel="noopener noreferrer">Documentation</a>
31
+ <a href="https://wavespeed.ai/models/wavespeed-ai/qwen-image" class="nav-link" target="_blank" rel="noopener noreferrer">Blog</a>
32
+ <a href="https://wavespeed.ai/models/wavespeed-ai/qwen-image/edit" class="nav-button" target="_blank" rel="noopener noreferrer">Try on WaveSpeed →</a>
33
  </div>
34
  </div>
35
  </nav>
 
42
  </div>
43
 
44
  <div class="announcement-section">
45
+ <p class="announcement">Qwen-Image Edit is now open-source!</p>
46
  <div class="divider"></div>
47
+ <p class="description">Advanced Image-to-Image Generative Model for Precise Editing</p>
48
  </div>
49
 
50
  <div class="hero-image">
 
53
 
54
  <section class="intro-section">
55
  <h2>Introduction</h2>
56
+ <p>We are thrilled to release Qwen-Image Edit, an image editing foundation model in the Qwen series that achieves significant advances in transforming existing images with precise control. Experiments show strong capabilities in image-to-image generation, with exceptional performance in maintaining original image structure while applying creative transformations. Qwen-Image Edit is now available on Hugging Face and can be used locally with the diffusers library.</p>
57
  <div class="benchmark-image">
58
  <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/bench.png" alt="Qwen-Image Benchmark" class="full-width-img">
59
  </div>
 
79
  <h2>Quick Start</h2>
80
  <p>Choose your preferred Qwen image model:</p>
81
 
82
+ <h3>Option 1: Using Qwen-Image-Edit with diffusers</h3>
83
+ <p>Install the latest version of diffusers</p>
84
+ <div class="code-block">
85
+ <pre><code>pip install git+https://github.com/huggingface/diffusers</code></pre>
86
+ </div>
87
+ <div class="code-block">
88
+ <pre><code>import os
89
+ from PIL import Image
90
+ import torch
91
+ from diffusers import QwenImageEditPipeline
92
+
93
+ pipeline = QwenImageEditPipeline.from_pretrained("Qwen/Qwen-Image-Edit")
94
+ print("pipeline loaded")
95
+ pipeline.to(torch.bfloat16)
96
+ pipeline.to("cuda")
97
+ pipeline.set_progress_bar_config(disable=None)
98
+
99
+ image = Image.open("./input.png").convert("RGB")
100
+ prompt = "Change the rabbit's color to purple, with a flash light background."
101
+
102
+ inputs = {
103
+ "image": image,
104
+ "prompt": prompt,
105
+ "generator": torch.manual_seed(0),
106
+ "true_cfg_scale": 4.0,
107
+ "negative_prompt": " ",
108
+ "num_inference_steps": 50,
109
+ }
110
+
111
+ with torch.inference_mode():
112
+ output = pipeline(**inputs)
113
+
114
+ output_image = output.images[0]
115
+ output_image.save("output_image_edit.png")
116
+ print("image saved at", os.path.abspath("output_image_edit.png"))</code></pre>
117
+ </div>
118
+
119
+ <h3>Option 2: Using the latest Qwen VLo model</h3>
120
  <p>The new Qwen VLo model specializes in image-to-image generation with progressive editing features.</p>
121
  <div class="code-block">
122
  <pre><code>pip install dashscope>=1.20.7</code></pre>
 
147
  else:
148
  print(f'Failed to generate image: {response.message}')</code></pre>
149
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  </section>
151
 
152
  <section class="showcase-section">
 
154
 
155
  <div class="showcase-item-full">
156
  <div class="showcase-description-full">
157
+ <h3>Semantic Editing</h3>
158
+ <p>One of the highlights of Qwen-Image Edit lies in its powerful capabilities for semantic editing. It can modify image content while perfectly preserving the original visual semantics. For example, when editing character images like Qwen's mascot Capybara, the model maintains character consistency even when most pixels in the image are changed. This enables effortless and diverse creation of original IP content, such as MBTI-themed emoji packs based on mascot characters.</p>
159
  </div>
160
  <div class="showcase-image-full">
161
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s1.jpg" alt="Semantic Editing Example" class="showcase-img-full">
162
  </div>
163
  </div>
164
 
165
  <div class="showcase-item-full">
166
  <div class="showcase-description-full">
167
+ <h3>Novel View Synthesis</h3>
168
+ <p>Qwen-Image Edit excels at novel view synthesis, a key application in semantic editing. The model can rotate objects by various angles, including 90-degree and even full 180-degree rotations, allowing users to see different sides of objects. This capability is particularly valuable for product visualization, architectural rendering, and creative content production where multiple perspectives are needed.</p>
169
  </div>
170
  <div class="showcase-image-full">
171
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s2.jpg" alt="Novel View Synthesis Example" class="showcase-img-full">
172
  </div>
173
  </div>
174
 
175
  <div class="showcase-item-full">
176
  <div class="showcase-description-full">
177
+ <h3>Appearance Editing</h3>
178
+ <p>Appearance editing is another powerful capability of Qwen-Image Edit. The model can keep certain regions of an image completely unchanged while adding, removing, or modifying specific elements. For example, it can insert signboards into scenes with corresponding reflections, remove fine details like hair strands, change the color of specific elements, or adjust backgrounds and clothing in portraits—all with exceptional attention to detail and realism.</p>
179
  </div>
180
  <div class="showcase-image-full">
181
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s3.jpg" alt="Appearance Editing Example" class="showcase-img-full">
182
  </div>
183
  </div>
184
 
185
  <div class="showcase-item-full">
186
  <div class="showcase-description-full">
187
+ <h3>Text Editing Excellence</h3>
188
+ <p>A standout feature of Qwen-Image Edit is its accurate text editing capability, which stems from Qwen-Image's deep expertise in text rendering. The model excels at editing both English and Chinese text in images, enabling modifications to large headline text as well as precise adjustments to small and intricate text elements. This makes it particularly valuable for poster design, advertisement creation, and multilingual content production.</p>
189
+ </div>
190
+ <div class="showcase-image-full">
191
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s4.jpg" alt="Text Editing Example" class="showcase-img-full">
192
+ </div>
193
+ </div>
194
+
195
+ <div class="showcase-item-full">
196
+ <div class="showcase-description-full">
197
+ <h3>Progressive Editing</h3>
198
+ <p>Qwen-Image Edit supports chained, step-by-step editing approaches that allow users to progressively refine and correct images. For example, when editing complex calligraphy artwork, users can draw bounding boxes to mark specific regions that need correction and instruct the model to fix these areas one by one. This iterative approach enables precise control over the editing process, ensuring the desired final result is achieved even for challenging edits.</p>
199
  </div>
200
  <div class="showcase-image-full">
201
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/bench.png" alt="Progressive Editing Example" class="showcase-img-full">
202
  </div>
203
  </div>
204
 
 
210
  <div class="resource-links-section">
211
  <h2>Resources</h2>
212
  <div class="resource-links">
213
+ <a href="https://wavespeed.ai/models/wavespeed-ai/qwen-image/edit" target="_blank" rel="noopener noreferrer" class="resource-link">Qwen-Image Edit on WaveSpeed</a>
214
+ <a href="https://wavespeed.ai/models/wavespeed-ai/qwen-image" target="_blank" rel="noopener noreferrer" class="resource-link">Qwen-Image on WaveSpeed</a>
215
+ <a href="https://wavespeed.ai/" target="_blank" rel="noopener noreferrer" class="resource-link">WaveSpeed AI</a>
216
+ <a href="https://huggingface.co/Qwen/Qwen-Image-Edit" target="_blank" rel="noopener noreferrer" class="resource-link">Hugging Face</a>
217
+ <a href="https://modelscope.cn/models/qwen/Qwen-Image-Edit" target="_blank" rel="noopener noreferrer" class="resource-link">ModelScope</a>
218
+ <a href="https://chat.qwen.ai/" target="_blank" rel="noopener noreferrer" class="resource-link">Qwen Chat</a>
219
  </div>
220
  </div>
221
  </div>