pid / app.py

Commit History

Preload both PiD checkpoints (2k + 2kto4k); pick at request time based on resolution (>512 → 2kto4k for 4K target)
18982d7

apolinario commited on

Reduce duration to 90s (fits comfortably on full Blackwell)
5655c6f

apolinario commited on

Use size='xlarge' (full 96GB Blackwell instead of 48GB MIG; 2× quota cost)
42bd837

apolinario commited on

Drop VAE tiling (it fits at normal decode); PiD has no tiling API to apply during upscale
e3b1179

apolinario commited on

Drop VAE tiling cleanup (mutation is fork-local on ZeroGPU; parent state untouched)
939d211

apolinario commited on

Enable VAE tiling+slicing only when resolution >= 768 (inside @spaces.GPU); reset after the call
d330ff4

apolinario commited on

Initial preview label: 'Z-Image with PiD' (only runtime updates say 'Generating…')
12192e5

apolinario commited on

Drop prompt label; cap app width at 1200px
d29a4c4

apolinario commited on

Shorter description; add 'Randomize seed' checkbox that writes the picked seed back into the Seed field
1e34c9b

apolinario commited on

Layout: prompt + run inline above image; advanced settings in accordion below; match slider max_height to height
d1e77f7

apolinario commited on

Bump preview + slider heights to 720/900px
9d0034c

apolinario commited on

Stream PiD's 4 internal student-sampler steps (yield after each); 'Upscaling with PiD — step K/4' label
622f4d0

apolinario commited on

Drop intermediate captures + gallery; use gr.ImageSlider for Z-Image vs PiD A/B; dynamic 'Generating Z-Image step X/N' / 'Upscaling' labels
e2f50b1

apolinario commited on

Stream taef1 previews from Z-Image (thread+queue) into a flash gr.Image; swap to gr.Gallery only when all PiD steps done
afb0b5a

apolinario commited on

Fix _latent_to_pil squeeze dim (T=1, dim=1 not dim=0); stream gallery as each PiD step completes
6cd8e25

apolinario commited on

Patch Gemma2.forward to put torch.tensor on the embedding's device (ZeroGPU rejects the CPU normalizer cross-device multiply)
9014add

apolinario commited on

Replace transformers' vmap-based mask broadcaster with explicit broadcasting (ZeroGPU __torch_function__ can't fake-alloc inside vmap)
b0fc9e3

apolinario commited on

Force eager attention on Z-Image text encoder (vmap conflict with ZeroGPU); add Citrus theme + dark-mode color css
bcabac3

apolinario commited on

Initial PiD + Z-Image step-by-step denoising demo for ZeroGPU
0972cc0

apolinario commited on