mdraw / deface

This repository has moved to https://github.com/ORB-HD/deface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deface: Video anonymization by face detection

Note: This repository has moved to https://github.com/ORB-HD/deface. The copy you are viewing right now will no longer be updated and will be removed in the future.

Installation

From PyPI (official releases):

$ pip install deface

Current git master:

$ pip install 'git+https://github.com/mdraw/deface'

Usage

Basic usage after installing the deface package:

$ deface <input.mp4> -o <output.mp4>

Show help and all options:

$ deface -h

Hardware acceleration with ONNX Runtime

CUDA (on Nvidia GPUs)

If you have a CUDA-capable GPU, you can enable GPU acceleration by installing the relevant packages:

$ pip install onnx onnxruntime-gpu

If the onnxruntime-gpu package is found and a GPU is available, the face detection network is automatically offloaded to the GPU. This can significantly improve the overall processing speed.

Other platforms

If your machine doesn't have a CUDA-capable GPU but you want to accelerate computation on another hardware platform (e.g. Intel CPUs), you can look into the available options in the ONNX Runtime build matrix.

Credits

About

This repository has moved to https://github.com/ORB-HD/deface

License:MIT License


Languages

Language:Python 99.8%Language:Shell 0.2%