Skip to main content

DeepDefacer: Automatic Removal of Facial Features via Deep Learning.

-------->

DeepDefacer is a MRI anonymization tool written in Python, on top of Tensorflow and Keras, that was developed in partnership with the Poldrack Lab at Stanford University. It can be used to quickly deface 3D MRI images of any resolution and size on commercial CPUs and GPUs. Its goal is to provide the community with an easy to use and efficient tool for defacing medical images that require anonymization for compliance with federal privacy laws (e.g HIPAA).

Referencing and citing DeepDefacer

If you use DeepDefacer in your work, please refer to this citation for the current version:

@article{khazane2019state,
  title={DeepDefacer: Automatic Removal of Facial Features from MR Scans Via Deep Learning},
  author={Anish Khazane, Julien Hoachuck, Dr. Chris Gorgowelski, Dr. Russell Poldrack},
  journal={in proceedings, arXiv preprint},
  year={2019}
}

If you use any of the architecture code from the ARFF-CNN, please also use the citation above to comply with its authors' instructions on referencing.

Requirements

  • Any Python version between 2.7 and 3.6.
  • If you are using the GPU version of this library, please ensure that your GPU drivers are correctly installed and up to date. Please reference GPU Support for Tensorflow-GPU for further details on GPU setup.
  • Input MRI images must have 3D structure and be saved in either .nii or .nii.gz format.

Installation

Deepdefacer can be easily installed on any operating system via Pypi. There are two versions of this package; CPU or GPU support. Please enter one of the following commands into your terminal window to begin installation, depending on your system specifications and desired python version.

CPU Support

pip install deepdefacer[tf_cpu] / pip3 install deepdefacer[tf_cpu]

GPU Support

pip install deepdefacer[tf_gpu] / pip3 install deepdefacer[tf_gpu]

Note: If you are using a ZSH-type shell, you may need to wrap the package name in quotations in order to successfully initiate the Pip installation. (e.g pip install "deepdefacer[...]").

Usage and Documentation

Once installed, please enter deepdefacer --help into your terminal window to see a list of available options for this program. Defacing a 3D MRI image is extremely simple, and can be done with the following command:

deepdefacer --input_file <input filename>

The program will output a defaced image in the same directory as the input file, unless --defaced_output_path is specified.

You can also save the predicted mask for any MRI image by specifying the desired output filename and directory with the --mask_output_path option.

Release files for deepdefacer 2.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepdefacer 2.1.2
File Size Uploaded
deepdefacer-2.1.2.tar.gz 5.3 MB Details

Release files / deepdefacer-2.1.2.tar.gz

Download URL deepdefacer-2.1.2.tar.gz
Size 5.3 MB
Tags Source
SHA-256 checksum
How to use checksums
6dda7723cf006bcc157f746e348287f5d1dd361f764a74b830cbcc3afafdbe28
BLAKE2b-256 checksum
How to use checksums
c9b9f70f5d8cc7df10516998610364dd377ecc92823feda90f3285b90f3ffd3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.10

Release history Release notifications | RSS feed

This release

2.1.2 This release

1 release file

2.1.1

1 release file

2.1.0

1 release file

2.0.9

1 release file

2.0.8

1 release file

2.0.7

1 release file

2.0.6

1 release file

2.0.5

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.1.9

1 release file

1.1.8

1 release file

1.1.7

1 release file

1.1.6

1 release file

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

2 release files

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page