FlashReFocus-CPU / README.md
ming0531's picture
FlashReFocus on a free CPU (sharp photographs, no restoration)
35bbb5b verified
|
Raw History Blame Contribute Delete
1.09 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
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. Video spotlight: ming0531/FlashReFocus-Video.

Project page · Code

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