File size: 1,566 Bytes
a52d2e1
bd5ba20
 
 
 
a52d2e1
bd5ba20
 
a52d2e1
 
bd5ba20
a52d2e1
 
bd5ba20
 
 
 
 
 
 
 
 
 
 
9c46849
 
 
 
 
 
 
bd5ba20
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
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`.