YiYiXu's picture
YiYiXu HF Staff
flux2 latent preview via Modular Diffusers streaming API (pipe.stream, diffusers PR #14159)
8540d8b verified
|
Raw
History Blame Contribute Delete
810 Bytes
---
title: Flux2 Latent Preview
emoji: 🌊
colorFrom: yellow
colorTo: indigo
sdk: gradio
sdk_version: 6.5.1
python_version: '3.12'
app_file: app.py
pinned: false
---
Live latent preview for FLUX.2 [dev] using the Modular Diffusers streaming API (`pipe.stream()`)
from [huggingface/diffusers#14159](https://github.com/huggingface/diffusers/pull/14159).
Unlike the [flux-latent-preview](https://huggingface.co/spaces/diffusers-internal-dev/flux-latent-preview)
space (which inserts a custom preview block into the denoise loop and drains a queue from a worker
thread), this app just iterates `pipe.stream()` β€” the pipeline yields its live state after every
denoising step β€” and renders each state with a preview pipeline assembled from flux2's own
unpack + decode blocks, sharing the main pipeline's VAE.