File size: 810 Bytes
387a4de
 
8540d8b
 
 
387a4de
8540d8b
 
387a4de
 
 
 
8540d8b
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
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.