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

A newer version of the Gradio SDK is available: 6.26.0

Upgrade
metadata
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.

Unlike the 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.