Spaces:
Paused
Paused
Commit History
-
Viewer: tracks/RGB toggle + restrict colorful tracks to face+hair (facer)
Umut Kocasari +1: Claude Opus 4.8Two changes to the dynamic point-cloud viewer: 1) Toggle between two colorings, switched instantly client-side: - colorful point tracks (default), and - plain image-RGB points. run() now emits both a track-colored and an RGB .glb per frame (<=2*N, i.e. up to 80 files); the three.js player preloads both sets, keyed by frame index, and the 'Colorful tracks' checkbox flips the active set. 2) Restrict the colorful tracks to the facial area + hair (never neck / shoulders / clothing) using FacePerceiver/facer face parsing (CelebAMask-HQ classes; keep all except background/neck/cloth/hat/necklace). The per-frame face+hair mask scopes both the track seeds and the recoloring via a new optional 'regions' arg on compute_track_colors. Falls back to unrestricted tracks if facer is unavailable / finds no face. Adds pyfacer to requirements and libgl1/libglib2.0-0 to packages.txt (pyfacer pulls in the GUI opencv build, which needs libGL). Co-Authored-By: Claude Opus 4…e948811
-
Fix RVM background removal crash on the Space (trust_repo + fallback)
Umut Kocasari +1: Claude Opus 4.8torch.hub.load('PeterL1n/RobustVideoMatting') prompts 'trust this repo?', which raises EOFError in the non-interactive Space. Pass trust_repo=True. Also wrap the background-removal call so any failure logs a warning and falls back to full-frame reconstruction instead of aborting the whole run. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>d35e4df -
Add FaceAnything Gradio demo app
Umut Kocasari +1: Claude Opus 4.8Up to 40 input images; Joint (all-at-once) vs One-by-one inference modes. Outputs: canonical/depth/normals 2D videos, a colorful 3D point-track point cloud (.ply) in the 3D viewer with a per-frame slider + downloadable .zip, and a bonus 2D track overlay video. Exposes the repo's hyperparameters (process_res, background removal, predicted poses, conf cut, track count/k/ threshold, fps, frame cap). Vendors src/ (faceanything + depth_anything_3); checkpoint added separately via LFS. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>4db294e