Spaces:
Running on Zero
Running on Zero
Commit History
-
fix: sync inpainting.py/model_loader.py with main repo - deploy real StableDiffusionInpainter
nmdbbbThe Space had been running a stale LamaModelInpainter this whole time (the crop-back-to-original-size fix for SimpleLama's multiple-of-8 padding was never pushed here), which crashed with 'images do not match' on any crop whose dimensions weren't already divisible by 8 - i.e. almost every real photo, only missed by tiny square 256x256 test images. Also brings over StableDiffusionInpainter, RemoteInpainter, proportional crop padding, and CORS middleware from the main repo.0fb4a38 -
fix: recompute SAM2 embedding inside decode() instead of caching a CUDA tensor across requests
nmdbbbZeroGPU dispatches @spaces.GPU calls to ephemeral worker processes; the host process (no real GPU) can't unpickle a raw CUDA tensor returned from one call and passed into another, causing 'Low-level CUDA init reached' on /segment/point. decode() now re-runs set_image() from the cached PIL image instead of reusing a cross-process embedding.8dc9082 -
fix: disable SSR mode so custom FastAPI routes aren't swallowed by the SSR proxy middleware
nmdbbbHF Spaces defaults GRADIO_SSR_MODE=true, which installs a middleware that proxies every non-internal path (including /health, /segment/init, etc, and even Gradio's own /docs) to a Node SSR renderer before routing runs - every request silently got back the same SPA shell HTML.97de0c1 -
fix: use demo.launch() instead of mount_gradio_app so ZeroGPU's startup handshake fires
nmdbbbspaces/zero/gradio.py monkey-patches gr.Blocks.launch itself to send the startup report to HF's ZeroGPU infra; mount_gradio_app + manual uvicorn.run never triggers it, causing the persistent 'No @spaces.GPU function detected during startup' error regardless of decorator wiring.e878160 -
Pass @spaces.GPU function directly as gr.Interface fn=
nmdbbb5eb8f74 -
Wire hidden Gradio callback for ZeroGPU detection, switch to SD backend
nmdbbb39baaf1 -
Use real @spaces.GPU decorators on module-level functions
nmdbbb13a9292 -
Import spaces before gradio for ZeroGPU CUDA emulation
nmdbbb27db35e -
Deploy object removal API (SAM2 + LaMa on ZeroGPU)
nmdbbbea2b072