WeGen2 — Many worlds. One model. Native pixel-space generation, editing and composition. 61B total parameters; approximately 7B activated per generation token. Three unretouched example outputs: a Chinese handwritten letter, a layered paper lantern festival, and an embroidered portrait.

Shaobin Zhuang1,*   Zhipeng Huang3,*   Canmiao Fu3,†   Xiaoqiang Zhou3   Hao Lu3   Ying Zhang3   Chen Li3,‡   Jing LYU3   Yali Wang2,‡

1 SJTU   2 MMLab @ SIAT   3 WeChat Vision, Tencent Inc.

* Equal contribution · Shaobin Zhuang and Zhipeng Huang
† Project leader · Canmiao Fu
‡ Co-corresponding authors · Chen Li and Yali Wang

Project Page Code Weights Watch the Film Inference Guide Paper

WeGen2 unifies generation, editing and composition in native pixel space. Text, reference images and earlier outputs share one context. 61B total parameters · approximately 7B activated per generation token.

Visual tour · Architecture · Download · Authors

Visual tour

One shared context for a visual idea—and everything it becomes.

Six complete WeGen2 generations: cinematic laundrette, snowy owl in flight, Chinese flower-market poster, English pet-event poster, lighthouse oil painting, and a hand-cut WeGen2 inscription.

Image editing: the original fox and heron composition, followed by a two-colour woodcut reinterpretation. Both complete images are shown.

Multi-reference composition: two independent couture portraits are combined into a shared gallery scene. Both reference images and the complete generated result are shown.

Virtual try-on with the source portrait, eight full shopping-page screenshots and the outfit generated by WeGen2.

Open the full-resolution try-on

An Art Nouveau playbill goes through three edits. A white peacock replaces the phoenix, a new title and subtitle fill the upper cartouche, and a ticket panel adds the venue and performance time.

The Jade Bird · full images and original prompts

Generated input · Open full image

A stunning Art Nouveau theatre playbill, flat vertical print filling the frame, cobalt and gold. A single orange phoenix perches on a curving branch beneath a golden disc, its fiery feathers curling through white lilies. At the top a wide ivory cartouche bears the meticulously typeset dark headline "FIRE BIRD"; at the very bottom a narrow navy ribbon says "ACT I". Only these two inscriptions. Distinct, perfectly legible lettering, crisp rich handmade mosaic pieces and strong composition.

White peacock · Open full image

Replace the orange phoenix illustration with a white peacock with a long emerald train and a delicate white crest on the same branch. Keep the lilies, gold disc, artwork style, and both printed inscriptions FIRE BIRD and ACT I exactly as they are.

Title and subtitle · Open full image

On the upper ivory cartouche replace FIRE BIRD with “THE JADE BIRD”. Set the subtitle “A BALLET IN TWO ACTS” on a smaller line immediately beneath the title. Keep the white peacock, emerald train, gilded border and ACT I footer.

Venue and time · Open full image

Make the bottom ACT I cartouche a two-line ivory ticket. Print “RIVER HALL” in small caps and “FRIDAY 18 JUNE AT 8 PM” below it. Keep the rest of the playbill exactly as printed.

Original prompts and full images · Explore the project page

Inside the model

Native pixel-space modeling. A-MoT connects understanding and generation through joint attention. Image and timestep residual pathways are inside generation. A-MoE combines an always-active shared expert with a router-selected subset of experts. Expert count is schematic.

A-MoT connects understanding and generation through joint attention, with image and timestep residual pathways inside generation. A-MoE combines shared and token-routed experts. Learned patch modules connect RGB images directly to the backbone, without a separate pretrained vision encoder or latent autoencoder at inference.

Property WeGen2
Parameters 61B total; approximately 7B activated per generation token
Representation Native RGB pixels
Conditioning Text, reference images and earlier outputs
Weight format BF16 safetensors
Visual text Chinese and English

Explore the architecture · Results across 11 benchmarks

Download and create

Build with WeGen2. Your next idea starts here. Download, install, create.

Checkpoint access. The weights are public and can be downloaded without requesting access or logging in. The download contains the WeGen2 image model and the BF16 Qwen3-VL-30B-A3B-Instruct prompt enhancer. WeGen2 reads its own checkpoint from the root directory and its prompt enhancer from prompt_enhancer/. The two sets of weights occupy about 186 GB on disk.

Use Python 3.10 or newer and an appropriate PyTorch build for your environment, then install the standalone inference package:

git clone https://github.com/WeChatCV/WeGen2.git
cd WeGen2
pip install -e .
hf download GrayShine/WeGen2 --local-dir ./weights/WeGen2

If you already have the WeGen2 image model, download the enhancer into the same directory:

hf download GrayShine/WeGen2 --include 'prompt_enhancer/*' --local-dir ./weights/WeGen2

The enhancer runs locally on CPU by default. To accelerate it, pass pe_device to from_pretrained or use the global CLI option --pe-device. Its BF16 weights require about 58 GiB of memory, plus working space.

Generate an image, then use it as the input to a new edit:

from wegen2 import WeGen2Pipeline

pipe = WeGen2Pipeline.from_pretrained(
    "./weights/WeGen2", devices="auto"
)
image = pipe.generate(
    "An intricate paper mountain city, a red train on a curved bridge, "
    "layered jade-green paper, warm studio light."
)
image.save("paper-world.png")

night = pipe.generate(
    "Change the scene to night. Light the windows.",
    images=[image],
)
night.save("paper-world-night.png")

For multiple references, pass an ordered list in images. For conversation-based creation, use session = pipe.session() and call session.generate(...) for each turn. The model uses its standalone inference package, rather than a Diffusers pipeline or Transformers auto class.

Inference Guide Weights

Inference guide · 中文使用说明

Release status

The project page and standalone inference code are public. The paper is available on arXiv, and the BF16 weights are public.

Evaluation and scope

The accompanying report evaluates generation, editing and composition across 11 benchmarks. Selected gallery images demonstrate capabilities and do not replace aggregate evaluation.

Fine details, exact layouts and consistency across long edit sequences can remain challenging. Architectural outputs are visual concepts rather than dimensionally verified reconstructions. The featured sequence above uses successive image edits. Comic panels on the project page were generated sequentially and assembled; other multi-panel examples are generated as single images. Robot and driving examples are image edits, rather than physical task executions or validated control policies. Text decoding and visual question answering are experimental for the current image checkpoint; repeated punctuation can occur.

Memory requirements depend on image resolution, context length and runtime configuration.

Downloads last month
37
Safetensors
Model size
61B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for GrayShine/WeGen2

Quantizations
1 model

Paper for GrayShine/WeGen2