Qwen 开源 Qwen-Image-2.1:7B 视觉生成组件统一图像生成与编辑

Hacker News 热门(buzzing.cc 中文翻译)·2026-09-20 22:40·6小时前·jmillikin
AI 导读

Qwen 开源 Qwen-Image-2.1,在单一模型中统一文生图与图像编辑,视觉生成组件仅 7B 参数,并原生支持透明图像的生成与编辑。模型支持最多 10 张参考图、圆圈涂画和独立掩码指定局部编辑,通过混合粒度注意力与 KV cache 复用提升推理效率,并改进了文字排版、人像光照和人物产品一致性。

Hacker News 热门(buzzing.cc 中文翻译)
72AI 编辑部评分,满分 100

Qwen 开源 Qwen-Image-2.1:7B 视觉生成组件统一图像生成与编辑

2026-09-20 22:40· 6小时前· jmillikin
AI 导读

Qwen 开源 Qwen-Image-2.1,在单一模型中统一文生图与图像编辑,视觉生成组件仅 7B 参数,并原生支持透明图像的生成与编辑。模型支持最多 10 张参考图、圆圈涂画和独立掩码指定局部编辑,通过混合粒度注意力与 KV cache 复用提升推理效率,并改进了文字排版、人像光照和人物产品一致性。

Qwen-Image-2.1: Compact, Efficient, and Unified Image Creation

Qwen-Image-2.1 banner

GITHUB HUGGING FACE MODELSCOPE

We are excited to open-source Qwen-Image-2.1, an image model in the Qwen family that balances generation quality, inference efficiency, and cost. Qwen-Image-2.1 unifies text-to-image generation and image editing in a single model, with just 7B parameters in its visual generation component and native support for generating and editing transparent images.

This update introduces four key improvements:

  • Compact and efficient: A lightweight architecture and inference optimizations balance image quality and computational cost.
  • Native transparency, unified creation and editing: Generate regular or transparent images from prompts, edit transparent layers, and extract subjects from photos.
  • Versatile editing: Use up to 10 reference images, specify local edits, preserve people and products, and handle a wide range of tasks.
  • Realistic textures and refined aesthetics: Improved typography, portrait lighting, and fine details make generated images more visually compelling.

Compact and Efficient#

Qwen-Image-2.1 uses a lightweight architecture. Its visual generation component contains 32 Single-Stream DiT layers and 7B parameters. Despite its compact size, the model delivers strong image generation quality. The Qwen-Image-Bench comparison below shows its performance alongside other open-source and closed-source models.

Qwen-Image-Bench evaluation comparison

Qwen-Image-Bench evaluation comparison

Inference efficiency is another focus, particularly when editing with multiple input images. This optimization comes from a mixed-granularity attention architecture. Text, including the system prefix and editing instructions, uses a token-level causal mask, while image generation uses a chunk-level mask. KV cache reuse allows input images and editing instructions to serve as static context, computed and cached in the first step to improve inference efficiency and reduce memory usage.

Qwen-Image-2.1 mixed-granularity attention architecture

Qwen-Image-2.1 mixed-granularity attention architecture

Native Transparency, Unified Creation and Editing#

Native transparency is a major addition in this release. In December 2025, we introduced Qwen-Image-Layered as a dedicated model supporting transparent image generation. Qwen-Image-2.1 now integrates this capability into a unified model, using the prompt to determine whether to output a regular image or an image with a transparency channel.

Here are examples of transparent images generated directly from text:

Transparent images generated from text (1) Transparent images generated from text (2) Transparent images generated from text (3)

Beyond individual subjects, the model can generate more complex transparent images composed of multiple elements, opening up further possibilities for design and asset creation.

Transparent compositions with multiple elements (1) Transparent compositions with multiple elements (2)

By unifying generation and editing, Qwen-Image-2.1 also supports editing transparent images directly. For example, it can change a subject’s expression while retaining the transparent background. The input is on the left and the edited result on the right.

Expression editing on a transparent image: input and result (1) Expression editing on a transparent image: input and result (2)

Text within a transparent layer can also be edited. In the following example, “BLOOM” is replaced with “Qwen-Image”.

Transparent text editing: replacing BLOOM with Qwen-Image (1) Transparent text editing: replacing BLOOM with Qwen-Image (2)

This capability extends to real photographs. Given an RGB image, the model can extract the desired subject as an RGBA layer with transparency, making it easier to reuse elements in subsequent design and composition work.

Extracting a transparent RGBA layer from an RGB photograph (1) Extracting a transparent RGBA layer from an RGB photograph (2)

Versatile Editing#

Qwen-Image-2.1 improves editing in four areas: multiple reference images, local editing, fidelity preservation, and task coverage.

Multiple References: Up to 10 Input Images#

Qwen-Image-2.1 supports up to 10 reference images, combining multiple subjects and assets into a coherent composition. In the group portrait example below, six individual portraits on the left are brought together in one photograph.

A group photograph generated from six portrait references

A group photograph generated from six portrait references

For virtual try-on, five inputs—a model, clothing, shoes, a bag, and a hat—can be combined into a complete outfit.

A complete outfit generated from five reference images

A complete outfit generated from five reference images

For interior design, the model can use 10 images of furnishings to generate a complete room arrangement.

An interior generated from ten furnishing references

An interior generated from ten furnishing references

Local Editing: Flexible Region Selection#

Qwen-Image-2.1 supports circles, painted annotations, and separate masks to specify where an edit should take place.

The first example uses circles of different colors to identify three regions at once: “Remove the metal watch in the blue circle, change the hair in the red circle to black, and replace the area in the green circle with gray short-sleeved linen pajamas.” The annotated input is on the left, and the result is on the right.

Circle-guided editing of a watch, hair, and clothing (1) Circle-guided editing of a watch, hair, and clothing (2)

Painted annotations provide another way to identify a region. In this example, the model adds a diver to the area marked in white on the right side of the input image.

Paint-guided editing: adding a diver to the marked region (1) Paint-guided editing: adding a diver to the marked region (2)

Circles and painted annotations obscure some of the original content. To preserve the complete input, Qwen-Image-2.1 also accepts the original image and a separate mask as two inputs. The following example asks the model to generate a cowboy on horseback, using these two images:

Local editing inputs: original image and separate mask (1) Local editing inputs: original image and separate mask (2)

The model edits the region specified by the mask, producing the following result:

Mask-guided editing result: a cowboy on horseback

Mask-guided editing result: a cowboy on horseback

Local editing can also support sequential creation. By making successive changes while preserving the rest of the scene, edited images can be assembled into simple animations, as illustrated by the capybara Calabash Brothers example below.

视频 · 前往原文观看

Fidelity: Preserving People and Products#

Fidelity improvements focus on portrait identity and product consistency. For portraits, the model better preserves facial features so that a person’s identity remains more consistent across edits. Each pair below shows the input on the left and the edited result on the right.

Portrait fidelity example one: input and result (1) Portrait fidelity example one: input and result (2) Portrait fidelity example two: input and result (1) Portrait fidelity example two: input and result (2) Portrait fidelity example three: input and result (1) Portrait fidelity example three: input and result (2)

For product editing, the model aims to preserve text, textures, and shape, keeping the product’s defining features consistent in a new image.

Product fidelity example one: input and result (1) Product fidelity example one: input and result (2) Product fidelity example two: input and result (1) Product fidelity example two: input and result (2) Product fidelity example three: input and result (1) Product fidelity example three: input and result (2)

Task Coverage: Panoramas, Infographics, and Storyboards#

Qwen-Image-2.1 supports a broad range of editing tasks, including panorama, infographic, and storyboard generation, balancing capabilities across different applications.

For example, starting from this selfie:

Input selfie for panorama generation

Input selfie for panorama generation

The model generates the following panorama:

Panorama generated from the selfie

Panorama generated from the selfie

The panorama can then be explored from different viewing directions in a visualization tool.

视频 · 前往原文观看

For infographic generation, a model photograph can be expanded into a detailed, information-rich composition.

Input model photograph for infographic generation

Input model photograph for infographic generation

Complex infographic generated from the model photograph

Complex infographic generated from the model photograph

The model can also turn a three-view character reference into a complete storyboard, providing material for storytelling and visual narratives.

Three-view character reference for storyboard generation

Three-view character reference for storyboard generation

Complete storyboard generated from the character reference

Complete storyboard generated from the character reference

Realistic Textures and Refined Aesthetics#

Qwen-Image-2.1 further improves visual quality, with particular attention to typography and portraits. Text rendering considers not only the content itself, but also type styles, layout, and their relationship to the overall composition. The following examples showcase text rendering across different settings.

Text rendering example one

Text rendering example one

Text rendering example two

Text rendering example two

Text rendering example three

Text rendering example three

Text rendering example four

Text rendering example four

For portraits, improved lighting and fine details give generated images a more realistic appearance.

Portrait lighting and detail example one

Portrait lighting and detail example one

Portrait lighting and detail example two

Portrait lighting and detail example two

Conclusion#

With a compact 7B visual generation component, Qwen-Image-2.1 brings image generation, transparency, and a wide range of editing capabilities together in one model. Faster inference, support for up to 10 reference images, flexible local editing, and improved fidelity for people and products make it a practical tool for design, content creation, e-commerce, and visual storytelling.

We hope you enjoy creating with Qwen-Image-2.1!