Skip to content

An attempt to develop a toolkit for running and evaluating privacy preserving techniques on facial biometrics.

Notifications You must be signed in to change notification settings

blazm/deid-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deid-toolkit

An attempt to develop a toolkit for running and evaluating privacy preserving techniques in facial biometrics

Toolkit description

Architecture

Table of Contents

  1. Features
  2. Prerequisites
  3. Installation
  4. Configuration
  5. Usage
  6. Examples
  7. Project Structure
  8. Contributing
  9. License
  10. Contact

--

Features

  • Command-line interface (something like https://docs.python.org/3.8/library/cmd.html):
    • easy to use (simple commands + names to run experiments)
    • easy to generate results
    • good look & feel
    • responsive logging (showing % of performed actions)
    • helpful tips (where results are saved, how can be visualised, etc)
  • Handling of multiple separated virtual environments
    • running the models in subshells, while reporting progress to main interface
  • Configuration parameters in text format via .ini file (loading & saving of different configurations within command line)
  • Checking and handling of datasets
    • Raw datasets path (simple names)
    • Cropped & Aligned path (dataset preparation/standardization)
  • Saving intermediate results for each phase (for each dataset, for each of the models)
  • Saving final results (final deidentified images and dataset evaluation scores / plots)
  • Handling and storing models / binary files for existing techniques
*   Pretrained models directory 

--

Prerequisites

  • Operating System: Linux ?
  • Python: 3.9+
  • Additional Dependencies: Conda, Mamba

Installation

  1. Clone the project:
    git clone https://github.com/blazm/deid-toolkit
  1. Get techniques.zip and aligned.zip (and original.zip if wanted) and extract them with unzip:

    unzip techniques.zip -d root_dir
    unzip evaluation.zip -d root_dir
    unzip visualization.zip -d root_dir
    unzip aligned.zip -d root_dir/datasets
    unzip original.zip -d root_dir/datasets
  2. Create the toolkit environment:

    conda env create -f toolkit.yml
  3. In deid_shell.py, change the conda_sh_path constant with the correct path to the conda.sh file on your machine.

Usage

General commands

  • root - see currently set root directory
  • set root - set root directory
  • serve - run webserver to see the generated results
  • set serve - set results directory for serving results
  • load config "filename.ini"
  • save config "filename.ini"
  • help "command"
  • ? - list of all commands

Listing commands for displaying implemented methods and current selection

  • datasets
  • techniques
  • evaluation
  • visuals
  • selection

Selection commands for dataset|technique|evaluation|all

  • select datasets
  • select techniques
  • select evaluation
  • select *

Running the processing (with feedback on the progress)

  • run preprocess
  • run techniques
  • run evaluation
  • run visualize
  • run *

Note

There is no selection for visualization methods, please refer to visualization to discover more details.

Tip

Your selection is stored in config.ini file: Which means you don't have to select again dataset|technique|evaluation| if you want to run the same selected dataset|technique|evaluation|

--

Toolkit components

Datasets

This module manages the datasets required for de-identification. It’s the first part of the pipeline. The toolkit is able to integrate (<-----) additional facial images datasets. Moreover, the datasets won’t be included in the toolkit because some of them have different licensing constraints.

Preprocess

Environments

Techniques

Evaluation

Visualization

About

An attempt to develop a toolkit for running and evaluating privacy preserving techniques on facial biometrics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •