File size: 1,087 Bytes
7b6dbcc
35bbb5b
 
 
7b6dbcc
 
35bbb5b
 
7b6dbcc
 
35bbb5b
7b6dbcc
 
35bbb5b
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: FlashReFocus (CPU)
emoji: 📷
colorFrom: green
colorTo: gray
sdk: gradio
sdk_version: 5.50.0
python_version: "3.10"
app_file: app.py
pinned: false
short_description: Refocus sharp photos on a free CPU
---

# FlashReFocus on the CPU

Refocus a photograph that is already sharp: Depth Anything V2 estimates its depth once, then each click runs only the
1.3M-parameter FlashReFocus renderer, here on a free CPU (a few seconds per click). One or two focal planes, tilt-shift,
the depth curve and your own depth map are supported.

Restoring blurred photographs (Stage I, one-step diffusion) needs a GPU: use the GPU demo
[ming0531/FlashReFocus](https://huggingface.co/spaces/ming0531/FlashReFocus). Video spotlight:
[ming0531/FlashReFocus-Video](https://huggingface.co/spaces/ming0531/FlashReFocus-Video).

[Project page](https://ming053l.github.io/FlashReFocus/) · [Code](https://github.com/ming053l/FlashReFocus)

Third-party code: Depth Anything V2 (depth), see `third_party/*/LICENSE`. Example portraits are from
[Unsplash](https://unsplash.com) under the Unsplash License.