Skip to main content

Dafne - Deep Anatomical Federated Network

Project description

Dafne

Deep Anatomical Federated Network is a program for the segmentation of medical images. It relies on a server to provide deep learning models to aid the segmentation, and incremental learning is used to improve the performance. See https://www.dafne.network/ for documentation and user information.

Windows binary installation

Please install the Visual Studio Redistributable Package under windows: https://aka.ms/vs/16/release/vc_redist.x64.exe Then, run the provided installer

Mac binary installation

Decompress the .zip file and run the dafne program from the unzipped folder.

Important note for Mac users: if you download the zip file from github, the system will ask to enter security exceptions for every binary file included in the distribution, because the binaries are not signed. This is too much to do by hand. Either install Dafne from source, or temporarily disable the access control with the following procedure:

  1. Open a terminal window.
  2. Run the command sudo spctl --master-disable (it will ask for your password).
  3. Run Dafne once by executing the dafne file.
  4. Run the calc_transforms command as well.
  5. Re-enable the protection by running the following command in a terminal: sudo spctl --master-enable

Notes for developers

Remember to git push --recurse-submodules if you change the dl folder!

dafne

Run: python dafne.py <path_to_dicom_img>

Notes for the DL models

Apply functions

The input of the apply function is:

dict({
    'image': np.array (2D image)
    'resolution': sequence with two elements (image resolution in mm)
    'split_laterality': True/False (indicates whether the ROIs should be split in L/R if applicable)
    'classification': str - The classification tag of the image (optional, to identify model variants)
})

The output of the classifier is a string. The output of the segmenters is:

dict({
    roi_name_1: np.array (2D mask),
    roi_name_2: ...
})

Incremental learn functions

The input of the incremental learn functions are:

training data: dict({
    'resolution': sequence (see above)
    'classification': str (see above)
    'image_list': list([
        - np.array (2D image)
        - np.array (2D image)
        - ...
    ])
})

training outputs: list([
    - dict({
        roi_name_1: np.array (2D mask)
        roi_name_2: ...
    })
    - dict...

Every entry in the training outputs list corresponds to an entry in the image_list inside the training data. So len(training_data['image_list']) == len(training_outputs).

Acknowledgments

Input/Output is based on DOSMA - GPLv3 license

Other packages required for this project are listed in requirements.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dafne-1.3a0.tar.gz (104.6 kB view details)

Uploaded Source

Built Distribution

dafne-1.3a0-py3-none-any.whl (124.6 kB view details)

Uploaded Python 3

File details

Details for the file dafne-1.3a0.tar.gz.

File metadata

  • Download URL: dafne-1.3a0.tar.gz
  • Upload date:
  • Size: 104.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for dafne-1.3a0.tar.gz
Algorithm Hash digest
SHA256 3e54d45190e7d43420c834ba8f7e4694776f68a68669eaf2dcc6413130dada64
MD5 f12eb31223cfa1ae200671010ab66c3c
BLAKE2b-256 8ae50b8ee67853fee987e2148a5bc10f3d1f8e739a0471b9bb286d9e773d11d1

See more details on using hashes here.

File details

Details for the file dafne-1.3a0-py3-none-any.whl.

File metadata

  • Download URL: dafne-1.3a0-py3-none-any.whl
  • Upload date:
  • Size: 124.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for dafne-1.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e39d8b6e31638ad9c58361985a6b3d6075e9a4cefa951b73d5da333e07988c5
MD5 359d536cb02f4149df61915db549a132
BLAKE2b-256 1892d8a191617b881c060a18e21fd938ff943c1e4c61a4290d8967767d87cd97

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page