FlashReFocus-Video / README.md
ming0531's picture
Example clips from Pexels
9c46849 verified
|
Raw History Blame Contribute Delete
1.57 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
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.

Project page · Code

Example clips (5 s excerpts, resized to 1280 px, no audio) are from Pexels under the Pexels License: friends on a street, three friends, stage dancers, dance troupe.

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.