Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.29.0
metadata
title: Image Blur Effects
emoji: 🖼️
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.23.1
app_file: app.py
pinned: false
Image Blur Effects using Segmentation and Depth Estimation
This Hugging Face Space demonstrates how to apply two different blur effects to images:
- Gaussian Background Blur: Uses image segmentation to identify the foreground object and apply a Gaussian blur to the background
- Depth-Based Lens Blur: Uses monocular depth estimation to create a realistic lens blur effect, with blur intensity proportional to estimated depth
How to Use
- Upload an image with a clear foreground subject
- Choose a blur effect type
- Adjust the blur strength
- For Gaussian Background Blur, specify the target class (e.g., person, cat, dog)
- Click "Apply Effect"
Models Used
- Image Segmentation:
facebook/maskformer-swin-base-ade
- Depth Estimation:
intel/dpt-large