pid / app.py

Commit History

Default prompt: 'detailed fur' (drop 'ultra-')
171fc6b
Running

apolinario commited on

Set PYTORCH_CUDA_ALLOC_CONF=expandable_segments to fight fragmentation; explicit low_cpu_mem_usage=False on TAEF1 + add accelerate to requirements to silence the warning
835d190

apolinario commited on

Default prompt: cat now wears a woolen hat
0f52fbe

apolinario commited on

Per-resolution GPU size: 512 → large (1× quota), 1024 → xlarge (2× quota); plain dispatcher routes between two @spaces.GPU entrypoints
11d62c5

apolinario commited on

Resolution as 512/1024 radio (no intermediates); clarify in info that PiD picks 2k vs 2kto4k accordingly
8c73a94

apolinario commited on

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