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.3a2.tar.gz (564.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dafne-1.3a2-py3-none-any.whl (606.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dafne-1.3a2.tar.gz
Algorithm Hash digest
SHA256 f6bccf26d2ba6254509587ce933bbcabbfa7314ba217645d7c4f50d527d00a90
MD5 86d01a15bbce6d3629ad901e49b97f3e
BLAKE2b-256 b74f2cda543585d443ded1084690cfc280430bfc6390cdcb00dda19319dd0c7b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dafne-1.3a2-py3-none-any.whl
Algorithm Hash digest
SHA256 022defa148c41a23adee663c9889f0b57bb2b45d1ad5f6ab1ea34ca46a29ae06
MD5 e8214872ca0a0326713ea67094f55cd3
BLAKE2b-256 985c5097883964ab29ab922f75ac859f49fef3e79e2b564e4a2b032177cad9f0

See more details on using hashes here.

Supported by

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