Prepare private model overview, examples, and inference guide
Browse filesFiles changed (8)
- .gitattributes+4
- README.mdAdded+101
- assets/ensemble.webpAdded
- assets/letter.webpAdded
- assets/portrait.webpAdded
- assets/poster.webpAdded
- assets/wegen2-mark.svgAdded
- assets/wegen2-wordmark.svgAdded
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353637383932 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textassets/ensemble.webp filter=lfs diff=lfs merge=lfs -textassets/letter.webp filter=lfs diff=lfs merge=lfs -textassets/portrait.webp filter=lfs diff=lfs merge=lfs -textassets/poster.webp filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101---language: - en - zhtags: - image-generation - image-editing - multimodal - pixel-space - mixture-of-expertspipeline_tag: text-to-image---
<p align="center"><img src="assets/wegen2-wordmark.svg" width="330" alt="WeGen2" /></p><h3 align="center">Native Pixel-Space Modeling for Unified Multimodal Creation</h3><p align="center"><a href="https://wegen2-preview.rhythmicemu4.chatgpt.site">Project Page</a> 路 <a href="https://github.com/zhuangshaobin/WeGen2">GitHub</a> 路 <a href="https://github.com/zhuangshaobin/WeGen2#quick-start">Inference Guide</a></p>
WeGen2 creates images from text, reference images, and their evolving context. One native pixel-space backbone supports **text-to-image generation, image editing, multi-reference composition, and multi-turn visual creation**.

## Model overview
| Property | Description || --- | --- || Model | WeGen2 || Parameters | 61B total; approximately 7B activated per generation token || Representation | RGB pixels mapped directly to patch tokens || Architecture | A-MoT and A-MoE || Conditioning | Text, reference images, and earlier outputs || Weight format | BF16 safetensors; approximately 114.5 GiB || Demonstrated visual text | Chinese and English |
A-MoT connects understanding and generation branches through joint attention, with dedicated image and timestep residual inputs for generation. A-MoE combines always-active shared computation with token-dependent routed experts. Inference requires neither a separate pretrained vision encoder nor a latent autoencoder.
## Visual creation
<p align="center"><img src="assets/poster.webp" width="31%" alt="A fantasy movie poster with English typography" /> <img src="assets/portrait.webp" width="31%" alt="A photorealistic portrait" /> <img src="assets/letter.webp" width="31%" alt="A handwritten Chinese letter" /></p>
The project gallery demonstrates poster design, photographic imagery, bilingual typography, virtual try-on, architectural concepts, authored-interface editing, and successive visual edits.
## Run locally
This is a private release preview. Authorized access is required; weight upload is being prepared.
Install an appropriate PyTorch build for your accelerator environment, then install the standalone repository:
```bashgit clone git@github.com:zhuangshaobin/WeGen2.gitcd WeGen2pip install -e .```
Once the checkpoint files are available:
```bashpip install -U huggingface_hubhf auth loginhf download GrayShine/WeGen2 --local-dir ./weights/WeGen2```
The model uses its standalone inference package; it is not loaded through `diffusers` or a Transformers auto class.
```pythonfrom wegen2 import WeGen2Pipeline
pipe = WeGen2Pipeline.from_pretrained( "./weights/WeGen2", devices="mlu:0,mlu:1")image = pipe.generate( "A luminous underwater opera house, intricate coral architecture.", size=(1024, 1024),)image.save("opera.png")
edited = pipe.generate( "Illuminate the stage. Preserve the architecture.", images=[image],)edited.save("opera-stage.png")```
For multiple references, pass an ordered list in `images`. For continuing creation, use `session = pipe.session()` and call `session.generate(...)` for each turn. See the [inference guide](https://github.com/zhuangshaobin/WeGen2#multi-turn-creation) for CLI examples and sequence requests.
## Runtime
The full checkpoint has been tested in BF16 on two MLU590 80 GiB cards with PyTorch 2.10.0 and torch_mlu 1.31.3. Generation, editing, multiple references, multi-turn editing, and 1024脳1024 output produced usable images. The code includes a standard PyTorch CUDA path, but NVIDIA execution has not yet been validated. Weight storage, context caches, and image computation all contribute to memory use.
## Evaluation and limitations
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. Text decoding and visual question answering are experimental for the current image checkpoint; repeated punctuation can occur. Architectural outputs are visual concepts rather than dimensionally verified reconstructions. Comic panels are separately generated and assembled for presentation. Robot and driving examples are image edits, not physical task executions or validated control policies.
## Team
Shaobin Zhuang, Zhipeng Huang, Canmiao Fu, Xiaoqiang Zhou, Hao Lu, Ying Zhang, Chen Li, Jing LYU, and Yali Wang.
Shanghai Jiaotong University 路 WeChat Vision, Tencent Inc. 路 Shenzhen Institutes of Advanced Technology.
Paper links and final licensing will be added before the public release..gitattributes+4
README.mdAdded+101
assets/ensemble.webpAdded

Large File Pointer Details
- SHA256: a721f93f3f1803f22ddd0436daf6321ad63a7b0140ae30466cc37927bf38957f
- Pointer size: 131 Bytes
- Size of remote file: 266 kB
assets/letter.webpAdded

Large File Pointer Details
- SHA256: 1e7c3784817866e889d9c078edd882a84258c1525de961bcab03ed50e674acf9
- Pointer size: 131 Bytes
- Size of remote file: 300 kB
assets/portrait.webpAdded

Large File Pointer Details
- SHA256: 6123568648ea8daf9a3888acd7bb566388cfeb947068015c5396f0636e958edb
- Pointer size: 131 Bytes
- Size of remote file: 273 kB
assets/poster.webpAdded

Large File Pointer Details
- SHA256: 0c0e2bd3b87d35d63d7a66ae77396aef93ffc16ca2807e77a9319e70394da70c
- Pointer size: 131 Bytes
- Size of remote file: 345 kB
assets/wegen2-mark.svgAdded
assets/wegen2-wordmark.svgAdded