Views
No views yet


This Hugging Face repository currently provides PosterOmni-v1 transformer weights (component-only). Other components (VAE / text encoder / tokenizer / scheduler / processor) should be loaded from a compatible base pipeline.
1git clone https://github.com/Ephemeral182/PosterOmni.git
2cd PosterOmni
3
4conda create -n posteromni python=3.11 -y
5conda activate posteromni
6
7pip install -r requirements.txtQwenImageEditPlusPipeline (Transformer from this repo)Qwen/Qwen-Image-Edit-Plus) and replace its transformer with our weights.⚠️ Component-only: this repo does NOT includemodel_index.jsonand other pipeline components,
so...Pipeline.from_pretrained("MeiGen-AI/PosterOmni_v1")will NOT work.
1import torch
2from PIL import Image
3from diffusers import QwenImageEditPlusPipeline
4
5device = "cuda" if torch.cuda.is_available() else "cpu"
6dtype = torch.bfloat16 if device == "cuda" else torch.float32
7
8# 1) Load full base pipeline
9base_model = "Qwen/Qwen-Image-Edit-Plus" # change to your compatible base
10pipe = QwenImageEditPlusPipeline.from_pretrained(base_model, torch_dtype=dtype).to(device)
11pipe.tokenizer_max_length = 1024 # optional
12
13# 2) Plug PosterOmni transformer from this repo
14posteromni_id = "MeiGen-AI/PosterOmni_v1"
15pipe.transformer = pipe.transformer.__class__.from_pretrained(posteromni_id, torch_dtype=dtype).to(device)
16
17# 3) Run inference
18img = Image.open("your_input.jpg").convert("RGB")
19
20# recommended: make width/height multiples of 16
21w, h = img.size
22w, h = (w // 16) * 16, (h // 16) * 16
23
24prompt = "Rescale image to 1:1" # for rescaling, include "to W:H"
25generator = torch.Generator(device=device).manual_seed(42)
26
27out = pipe(
28 image=[img],
29 prompt=prompt,
30 negative_prompt="",
31 width=w,
32 height=h,
33 num_inference_steps=40,
34 true_cfg_scale=4.0,
35 guidance_scale=1.0,
36 generator=generator,
37).images[0]
38
39out.save("posteromni_test.png")
40print("Saved: posteromni_test.png")to W:H, e.g. Rescale image to 16:9.


| Regime | Tasks |
|---|---|
| Poster Local Editing | Rescaling · Filling · Extending · Identity-driven |
| Poster Global Creation | Layout-driven · Style-driven |
config.jsondiffusion_pytorch_model-*.safetensorsdiffusion_pytorch_model.safetensors.index.jsonschen691@connect.hkust-gz.edu.cnjlai218@connect.hkust-gz.edu.cngaojialin04@meituan.comqq1842084@gmail.comliuzhongying@meituan.com1@article{chen2026posteromni,
2 title={PosterOmni: Generalized Artistic Poster Creation via Task Distillation and Unified Reward Feedback},
3 author={Chen, Sixiang and Lai, Jianyu and Gao, Jialin and Shi, Hengyu and Liu, Zhongying and Ye, Tian and Luo, Junfeng and Wei, Xiaoming and Zhu, Lei},
4 journal={arXiv preprint arXiv:2602.12127},
5 year={2026}
6}