BiliSakura / PixelGen-diffusers

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: June 21 2026
text-to-image

Introduction of PixelGen-diffusers

Model Details of PixelGen-diffusers

BiliSakura/PixelGen-diffusers

Self-contained PixelGen checkpoints for Hugging Face diffusers. Each variant folder ships its own pipeline code, component modules, and weights.

Converted from upstream PixelGen checkpoints using PixelGen-diffusers in Visual-Generative-Foundation-Model-Collection .

Available checkpoints
Subfolder Pipeline Task Resolution Model type
PixelGen-XL-16-256/ PixelGenC2IPipeline class-to-image 256×256 PixelGen-XL/16
PixelGen-XXL-16-512-t2i/ PixelGenT2IPipeline text-to-image 512×512 PixelGen-XXL/16-T2I
Repo layout
BiliSakura/PixelGen-diffusers/
├── README.md
├── PixelGen-XL-16-256/
│   ├── pipeline.py
│   ├── model_index.json
│   ├── demo.png
│   ├── scheduler/
│   │   ├── scheduler_config.json
│   │   └── scheduling_pixelgen.py
│   └── transformer/
│       ├── config.json
│       └── transformer_jit.py
└── PixelGen-XXL-16-512-t2i/
    ├── pipeline.py
    ├── model_index.json
    ├── conversion_metadata.json
    ├── scheduler/
    │   ├── scheduler_config.json
    │   └── scheduling_pixelgen.py
    ├── text_encoder/
    ├── tokenizer/
    └── transformer/
        ├── config.json
        ├── diffusion_pytorch_model.safetensors
        └── transformer_jit_t2i.py

Each class-conditional variant is self-contained: load with custom_pipeline=.../pipeline.py and trust_remote_code=True . PixelGen denoises directly in pixel space (no VAE).

ImageNet class labels

For PixelGen-XL-16-256/ , id2label is embedded in model_index.json (DiT-style).

  • pipe.id2label — inspect id → English label correspondence
  • pipe.labels — reverse map (English synonym → id)
  • pipe.get_label_ids("golden retriever")
  • pipe(class_labels="golden retriever", ...) — string labels resolved automatically
Demo

PixelGen-XL-16-256 demo

Class 207 — golden retriever, 256×256, 50 steps, guidance_scale=2.25 , Heun solver, timeshift=2.0 .

Load from Hugging Face
Class-to-image ( PixelGen-XL-16-256 )
import torch
from diffusers import DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained(
    "BiliSakura/PixelGen-diffusers/PixelGen-XL-16-256",
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
).to("cuda")

print(pipe.id2label[207])
print(pipe.get_label_ids("golden retriever"))

generator = torch.Generator(device="cuda").manual_seed(0)
images = pipe(
    class_labels="golden retriever",
    num_inference_steps=50,
    guidance_scale=2.25,
    generator=generator,
).images
Text-to-image ( PixelGen-XXL-16-512-t2i )

Uses a bundled Qwen3 text encoder when text_encoder/ is present; otherwise downloads from the path recorded in conversion_metadata.json .

import torch
from diffusers import DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained(
    "BiliSakura/PixelGen-diffusers/PixelGen-XXL-16-512-t2i",
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
)

generator = torch.Generator(device="cuda").manual_seed(42)
images = pipe(
    prompt="A golden retriever playing in a sunny garden",
    num_inference_steps=50,
    guidance_scale=4.0,
    generator=generator,
).images
Load from a local clone
Class-to-image ( PixelGen-XL-16-256 )
from pathlib import Path
import torch
from diffusers import DiffusionPipeline

model_dir = Path("./PixelGen-XL-16-256").resolve()
pipe = DiffusionPipeline.from_pretrained(
    str(model_dir),
    local_files_only=True,
    custom_pipeline=str(model_dir / "pipeline.py"),
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
).to("cuda")

generator = torch.Generator(device="cuda").manual_seed(0)
image = pipe(
    class_labels="golden retriever",
    num_inference_steps=50,
    guidance_scale=2.25,
    generator=generator,
).images[0]
image.save("demo.png")
Recommended inference settings
Variant Steps CFG scale Solver Timeshift CFG interval
PixelGen-XL-16-256 50 2.25 heun 2.0 [0.1, 0.9]
PixelGen-XXL-16-512-t2i 25 4.0 adam_lm 3.0 [0.0, 1.0]

height and width are fixed by each checkpoint's sample_size . Custom sizes are not supported for these exports.

Interface notes
  • Class-conditional generation uses class_labels (integer ImageNet id or English synonym).
  • guidance_scale > 1.0 enables classifier-free guidance over a null class token.
  • sampling_method accepts heun or euler for C2I; T2I defaults to adam_lm .
  • noise_scale defaults to 1.0 at 256×256 and 2.0 at 512×512 when not specified.
Citation

Source paper:

@article{ma2026pixelgen,
  title={PixelGen: Improving Pixel Diffusion with Perceptual Loss},
  author={Zehong Ma and Ruihan Xu and Shiliang Zhang},
  year={2026},
  eprint={2602.02493},
  archivePrefix={arXiv},
  primaryClass={cs.CV},
  url={https://arxiv.org/abs/2602.02493},
}

Runs of BiliSakura PixelGen-diffusers on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About PixelGen-diffusers huggingface.co Model

More PixelGen-diffusers license Visit here:

https://choosealicense.com/licenses/mit

PixelGen-diffusers huggingface.co

PixelGen-diffusers huggingface.co is an AI model on huggingface.co that provides PixelGen-diffusers's model effect (), which can be used instantly with this BiliSakura PixelGen-diffusers model. huggingface.co supports a free trial of the PixelGen-diffusers model, and also provides paid use of the PixelGen-diffusers. Support call PixelGen-diffusers model through api, including Node.js, Python, http.

PixelGen-diffusers huggingface.co Url

https://huggingface.co/BiliSakura/PixelGen-diffusers

BiliSakura PixelGen-diffusers online free

PixelGen-diffusers huggingface.co is an online trial and call api platform, which integrates PixelGen-diffusers's modeling effects, including api services, and provides a free online trial of PixelGen-diffusers, you can try PixelGen-diffusers online for free by clicking the link below.

BiliSakura PixelGen-diffusers online free url in huggingface.co:

https://huggingface.co/BiliSakura/PixelGen-diffusers

PixelGen-diffusers install

PixelGen-diffusers is an open source model from GitHub that offers a free installation service, and any user can find PixelGen-diffusers on GitHub to install. At the same time, huggingface.co provides the effect of PixelGen-diffusers install, users can directly use PixelGen-diffusers installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

PixelGen-diffusers install url in huggingface.co:

https://huggingface.co/BiliSakura/PixelGen-diffusers

Url of PixelGen-diffusers

PixelGen-diffusers huggingface.co Url

Provider of PixelGen-diffusers huggingface.co

BiliSakura
ORGANIZATIONS

Other API from BiliSakura

huggingface.co

Total runs: 132
Run Growth: 91
Growth Rate: 68.94%
Updated:February 16 2026
huggingface.co

Total runs: 29
Run Growth: -15
Growth Rate: -51.72%
Updated:February 16 2026
huggingface.co

Total runs: 16
Run Growth: 12
Growth Rate: 70.59%
Updated:March 09 2026
huggingface.co

Total runs: 10
Run Growth: -8
Growth Rate: -66.67%
Updated:March 09 2026
huggingface.co

Total runs: 10
Run Growth: 7
Growth Rate: 70.00%
Updated:March 09 2026
huggingface.co

Total runs: 3
Run Growth: -3
Growth Rate: -100.00%
Updated:March 09 2026