--- title: FlashReFocus Video Spotlight emoji: 🎬 colorFrom: green colorTo: gray sdk: gradio sdk_version: 5.50.0 python_version: "3.10" app_file: app.py pinned: false short_description: Keep one person sharp in a video and blur everyone else --- # FlashReFocus: Video Spotlight Upload a short clip and click the person to keep sharp. SAM 3 tracks every person, Depth Anything V2 estimates each frame's depth, the depth is edited so that everyone but the chosen person is moved away from the focal plane, and the FlashReFocus renderer renders each frame. Video frames are already sharp, so restoration (Stage I) is not used. The photo demo (restoration, click-to-focus, two focal planes, tilt-shift) is at [ming0531/FlashReFocus](https://huggingface.co/spaces/ming0531/FlashReFocus). [Project page](https://ming053l.github.io/FlashReFocus/) · [Code](https://github.com/ming053l/FlashReFocus) Example clips (5 s excerpts, resized to 1280 px, no audio) are from [Pexels](https://www.pexels.com) under the [Pexels License](https://www.pexels.com/license/): [friends on a street](https://www.pexels.com/video/a-group-of-people-walking-6784527/), [three friends](https://www.pexels.com/video/video-of-people-talking-while-walking-4625331/), [stage dancers](https://www.pexels.com/video/people-dancing-in-the-street-8688459/), [dance troupe](https://www.pexels.com/video/men-and-women-dancing-on-the-stage-4459708/). Third-party code and models: SAM 3 (facebook/sam3; see its model card for the licence) and Depth Anything V2 (depth), see `third_party/*/LICENSE`.