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