Home

Awesome

Blur Anything For Videos

Mentioned in Awesome OpenVINO

Blur Anything is an adaptation of the excellent Track Anything project which is in turn based on Meta's Segment Anything and XMem. It allows you to blur anything in a video, including faces, license plates, etc.

<div> <a src="https://img.shields.io/badge/%F0%9F%A4%97-Open_in_Spaces-informational.svg?style=flat-square" href="https://huggingface.co/spaces/Y-T-G/Blur-Anything"> <img src="https://img.shields.io/badge/%F0%9F%A4%97-Open_in_Spaces-informational.svg?style=flat-square"> </a> </div>

<video src="https://media.githubusercontent.com/media/Y-T-G/Blur-Anything/main/assets/sample-1-blurred-stacked.mp4"></video>

Get Started

# Clone the repository:
git clone https://github.com/Y-T-G/Blur-Anything.git
cd Blur-Anything

# Install dependencies: 
pip install -r requirements.txt

# Run the Blur-Anything gradio demo.
python app.py --device [cpu|cuda:0|cuda:1|...] --sam_model_type [vit_t| vit_b|vit_h| vit_l] [--backend [onnx|openvino]]

Features

To Do

Acknowledgements

The project is an adaptation of Track Anything which is based on Segment Anything and XMem.

Thanks to PIMS which is used to process video files while keeping memory usage low.