Giter VIP home page Giter VIP logo

deep_privacy2's Introduction

DeepPrivacy2 - A Toolbox for Realistic Image Anonymization

[Paper] [Appendix] [Video Demo] [Documentation] Hugging Face Spaces

DeepPrivacy2 is a toolbox for realistic anonymization of humans, including a face and a full-body anonymizer.

DeepPrivacy first detects, then recursively anonymization all individuals in an image with a Generative Adversarial Network (GAN) that synthesizes one individual at a time.

Published Papers

This repository provide source code for the following papers

DeepPrivacy2 vs DeepPrivacy1

This repository improves over the original DeepPrivacy repository with the following new features:

  • Full-body anonymization: Anonymize the entire human body with a single generator
  • Improved Face Anonymization: Improved quality and higher resolution (256x256 vs. 128x128) face anonymization without relying on facial landmark detection.
  • Attribute Guided Anonymiation: Anonymize faces guided on text prompts using StyleMC - [Video Demo].
  • Code cleanup and general improvements: Extensive refactoring, bugfixes, and improvements yielding improved results and faster training.

Useful Links

Quick Start

Installation

We recommend to setup and install pytorch with anaconda following the pytorch installation instructions.

  1. Clone repository: git clone https://github.com/hukkelas/deep_privacy2/.
  2. Install using setup.py:
pip install -e .

or:

pip install git+https://github.com/hukkelas/deep_privacy2/

See the documentation for more installation instructions.

Anonymization

anonymize.py is the main script for anonymization.

Full-Body Anonymization

python3 anonymize.py configs/anonymizers/FB_cse.py -i media/regjeringen.jpg --output_path output.png --visualize

Face Anonymization

python3 anonymize.py configs/anonymizers/face.py -i media/regjeringen.jpg --output_path output.png --visualize

Webcam anonymization

python3 anonymize.py configs/anonymizers/FB_cse.py --webcam

See the documentation for more detailed instructions for anonymization.

Gradio Demos

The repository includes gradio demos to show of the capabilities of DeepPrivacy2.

Face anonymization. Test it on Hugginface.

python3 -m gradio_demos.face

Full-body anonymization. Test it on Hugginface.

python3 -m gradio_demos.body_cse

License

This repsitory is released under Apache 2.0 License, except for the following:.

Citation

If you find this repository useful, please cite:

@inproceedings{hukkelas23DP2,
  author={Hukkelås, Håkon and Lindseth, Frank},
  booktitle={2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)}, 
  title={DeepPrivacy2: Towards Realistic Full-Body Anonymization}, 
  year={2023},
  volume={},
  number={},
  pages={1329-1338},
  doi={10.1109/WACV56688.2023.00138}}

deep_privacy2's People

Contributors

hukkelas avatar roydenwa avatar eitanhemed avatar psy222 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.