📷 Genfocus Pipeline: Interactive Refocusing (HF Demo)

📖 User Guide

Generative Refocusing supports two main applications:

  • All-In-Focus (AIF) Estimation: Set K = 0. The model will restore the AIF image from the blurry input.

  • Refocusing: 1. Click on the subject you want to bring into focus in the Step 2 image preview.

    1. Increase K (Blur Strength) to generate realistic bokeh effects based on the scene's depth.

⚠️ Preprocessing Note: Due to resource constraints in this demo, input images are automatically resized (longer edge = 512px).
If you wish to perform inference at the original resolution, please refer to our GitHub Code to run it locally.

Step 1: Upload Image

Click an example or upload your own image.

Examples (Click to Load)

Step 2: Set Focus & K

The image below shows the actual input for the model. Click on the image to set the focus point.

0 50

Result