whatisgithub

What is t2i-l2p?

tencentyouturesearch/t2i-l2p — explained in plain English

Analysis updated 2026-05-18

107PythonAudience · researcherComplexity · 4/5Setup · hard

In one sentence

A research codebase from Tencent for an AI method called L2P that generates images directly in pixel space instead of the usual compressed latent space.

Mindmap

mindmap
  root((repo))
    What it does
      Generates images
      Works in pixel space
      6B parameter model
    Tech stack
      Python
      DiffSynth-Studio
      Gradio
    Use cases
      Run inference
      Train your own model
      Try the demo
    Audience
      Researchers
    Setup
      Download weights
      Multi-GPU support

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Generate 1024x1024 images directly in pixel space from a text prompt.

USE CASE 2

Try the model through a hosted demo on Hugging Face Spaces.

USE CASE 3

Run the Gradio web interface locally with multi-GPU support.

USE CASE 4

Train your own version starting from the Z-Image-Turbo base model.

What is it built with?

PythonDiffSynth-StudioGradioPyTorch

How does it compare?

tencentyouturesearch/t2i-l2pmarcj/papernewspython/tzdata
Stars107107107
LanguagePythonPythonPython
Last pushed2026-07-01
MaintenanceActive
Setup difficultyhardmoderateeasy
Complexity4/52/51/5
Audienceresearchergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Needs downloaded model weights and a GPU, low-VRAM training still needs under 24GB VRAM.

So what is it?

This is a research codebase from Tencent Youtu Research for a text-to-image generation method called L2P. The core idea involves taking an AI model that was originally trained to generate images by working in a compressed internal representation (called latent space) and transferring it so that it instead generates images directly in pixel space. The paper claims this transfer requires minimal extra data and computation. Most modern AI image generators work by creating images in a compressed form and then decoding that into pixels. L2P produces pixels directly. The released model is six billion parameters in size and currently generates images at 1024 by 1024 pixel resolution. The roadmap lists higher resolutions (4K, 8K, 10K) as planned future work. A live demo is hosted on Hugging Face Spaces, and the model weights are also available through Hugging Face. The repository contains code for both inference and training. To generate an image you load the model weights, point the pipeline at a text prompt, and the model produces an image. The inference code is written in Python and depends on a toolkit called DiffSynth-Studio. A Gradio web interface is also provided for running the model through a browser, with support for distributing requests across multiple GPUs automatically. Training your own version follows four steps: download a base model called Z-Image-Turbo, run a weight conversion script that adapts those latent-space weights into a pixel-space starting point, run the training script against your own image dataset, and then merge the trained output back together for inference. A low-VRAM training script is available for single GPUs with less than 24 GB of memory. This repository is primarily aimed at AI researchers and engineers working on image generation. It accompanies an arXiv preprint and is not a consumer-facing product.

Copy-paste prompts

Prompt 1
Explain how L2P transfers a latent-space model into pixel space.
Prompt 2
Help me set up inference with this repo using DiffSynth-Studio.
Prompt 3
Walk me through the four training steps described in this README.
Prompt 4
What does the low-VRAM training script let me do on a single GPU?

Frequently asked questions

What is t2i-l2p?

A research codebase from Tencent for an AI method called L2P that generates images directly in pixel space instead of the usual compressed latent space.

What language is t2i-l2p written in?

Mainly Python. The stack also includes Python, DiffSynth-Studio, Gradio.

How hard is t2i-l2p to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is t2i-l2p for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.