Skip to main content

Run inference by the nnUnet v1 model.

Project description

nnunetv1

Note: Unit tests have not been added to this repository yet.

Summary

Run inference by the nnUnet model [1, 2] on an input NIfTI file.

Testing datasets, from http://medicaldecathlon.com/ [3]:

  • Task04_Hippocampus.tar (a 3-D dateset)
  • Task05_Prostate.tar (a 4-D dataset)

Cite

[1] Isensee, F., Jaeger, P.F., Kohl, S.A.A. et al. (2020). nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation. Nat Methods. https://doi.org/10.1038/s41592-020-01008-z.

[2] Isensee, F., Jäger, P. F., Kohl, S. A. A., Petersen, J., & Maier-Hein, K. H. (2021). pretrained models for 3D semantic image segmentation with nnU-Net (2.1). Zenodo. https://doi.org/10.5281/zenodo.4485926.

[3] Simpson, A. L., Antonelli, M., Bakas, S., Bilello, M., Farahani, K., Van Ginneken, B., ... & Cardoso, M. J. (2019). A large annotated medical image dataset for the development and evaluation of segmentation algorithms. arXiv preprint arXiv:1902.09063.

License

The nnUnet source code is under an Apache License 2.0; the remainder of this gear is under MIT License.

Classification

Category: Analysis

Gear Level:

  • Project
  • Subject
  • Session
  • Acquisition
  • Analysis

[[TOC]]


Inputs

  • modality_0

    • Name: modality_0
    • Type: .nii.gz
    • Optional: false
    • Classification: file
    • Description: 3D or 4D NIfTI file.
    • Notes: If 4D, should be only modality input.
  • modality_1

    • Name: modality_1
    • Type: .nii.gz
    • Optional: true
    • Classification: file
    • Description: 3D NIfTI file.
    • Notes: If this exists, all other inputs should also be 3D.
  • modality_2

    • Name: modality_2
    • Type: .nii.gz
    • Optional: true
    • Classification: file
    • Description: 3D NIfTI file.
    • Notes: If this exists, all other inputs should also be 3D.
  • modality_3

    • Name: modality_3
    • Type: .nii.gz
    • Optional: true
    • Classification: file
    • Description: 3D NIfTI file.
    • Notes: If this exists, all other inputs should also be 3D.

Config

  • pretrained_model

    • type: str
    • Description: Pre-trained model to use for inference. 10 options given for Task models 00-10 [2].
  • debug

    • type: bool
    • Description: Whether to include debug statements in the job logs.

Output Files

  • prediction_time.txt
  • postprocessing.json
  • plans.pkl
  • {input NIfTI file base name}__{model name}.nii.gz

Workflow

  1. Upload file(s) to container.
  2. Select file(s) as input(s) to gear.
  3. Specify which model to apply inference with, as well as any other config selections and run.
  4. Gear runs inference with selected model on inputs and places results into into new Analysis container.

Contributing

[For more information about how to get started contributing to that gear, checkout CONTRIBUTING.md.]

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

fw_gear_nnunetv1-0.1.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file fw_gear_nnunetv1-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fw_gear_nnunetv1-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 986d6648ea055af5380c6429d84115e32b5b521d4d2a80e9558e6d373fee18bf
MD5 f80fb7b8e586cbff7f8efb5272730c12
BLAKE2b-256 dfbd1b3c8d70362252b62315bd46cf0114c3d31d73d4cfa1de7e75cf40795d15

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