Spaces:
Running on Zero
Running on Zero
Commit History
-
Add in-app privacy notice for debug logging (closes #14) (#15)
Unverified signatureThe debug-logging pipeline (LOG-1-9, #13) was only documented for operators in README.md; end users of the Space saw no disclosure that their image/video/prompts may be logged when enabled. Add an in-app notice + Privacy Policy accordion, based on legitimate interest (GDPR Art. 6(1)(f)), mirroring the FireRed-Image-Edit-1.0-Fast reference project's equivalent notice. Logging itself is unchanged — still a silent no-op unless LOG_HF_TOKEN/LOG_DATASET_REPO are set. Claude-Session: https://claude.ai/code/session_01N8KBjSiiW8dPZc9KZru96q Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>2a6abee
-
Add optional debug logging pipeline (LOG-1–LOG-9) (#13)
Unverified signatureEach inference call can optionally be logged to a private HF Hub dataset repo for debugging, gated entirely by LOG_HF_TOKEN/LOG_DATASET_REPO (silent no-op when unset). Adapted from the FireRed-Image-Edit-1.0-Fast reference pattern for video: logged media (input image, pre-upscale output video) is referenced by path rather than embedded as bytes, and retention is a total-storage-size cap (LOG_STORAGE_CAP_GB) rather than a file-count limit, with oldest entries pruned first once exceeded. Uploads are batched and committed asynchronously (~60s) so logging never adds latency to a generation request. The generation/interpolation/upscale stages of run_inference are each extracted into their own helper function, so the frame/fps state for each stage is assigned exactly once instead of being reassigned across branches. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>e6a95be
-
Move 4x upscaling from CPU to GPU (fixes #11)
Runs upscale_frames() inside run_inference()'s @spaces.GPU call, right after RIFE interpolation, instead of outside it in generate_video(). postprocess/upscale/upscale.py now uses CUDA/fp16 when available (fp32 CPU fallback), matching the RIFE module's device pattern. _gpu_duration adds an upscaling-time estimate when the option is enabled. Avoids contending for the Space's single shared CPU container under concurrent load, at the cost of spending ZeroGPU quota on upscaling. SRS amendment tracked in issue #12.3546667 -
Add 4x super-resolution upscaling stage (FR-4, FR-5, ID-2, CR-2)
postprocess/upscale/: 4xLSDIRCompact (SRVGGNetCompact, num_conv=16) tiled CPU upscaling, vendored from the reference project (inference structure adapted from xinntao/Real-ESRGAN, BSD-3-Clause). Runs after interpolation and outside the @spaces.GPU call, so it never bids for ZeroGPU time. Wired into app.py's "Upscale 4x" checkbox. Also adds .gitignore for __pycache__/ and the RIFE weights downloaded at runtime. Closes #6 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>819311d -
Scaffold baseline I2V generation pipeline (FR-1, FR-2, IF-1, ENV-1, ENV-2)
Non-AOT WanImageToVideoPipeline loading of WAMU_v3, sized/duration helpers, and a Gradio UI for image+prompt input and video preview/download. AOT-compiled inference (FR-6) is deferred until AOT-package compatibility is confirmed (C-2, issue #3). Also adds the HF Space README config front matter, fixing the Space's 'Missing configuration in README' error. Closes #4 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>904e4ad