Skip to main content

Package pour l'utilisation de nnUNet

Project description

LungSegmentation nnUNetv2 Prediction Script

Python License

Un script Python pour exécuter facilement des prédictions de segmentation pulmonaire avec nnUNetv2 sur des images médicales.
Téléchargement automatique des modèles, préparation des fichiers pour la prédiction et renommage des résultats inclus.


🚀 Fonctionnalités

  • Téléchargement et extraction automatique des modèles depuis un URL.
  • Préparation de dataset.json pour la prédiction nnUNet.
  • Conversion des images d’entrée en .nrrd si nécessaire.
  • Exécution de la prédiction avec affichage des logs.
  • Nettoyage automatique des fichiers temporaires.
  • Renommage automatique du fichier de prédiction final.

📦 Prérequis

Avant de lancer le script, assurez-vous d’avoir installé et configuré les éléments suivants :

git clone https://github.com/FlorianDAVAUX/nnUNet_package.git
cd nnUNet_package
pip install -e .

⚙️ Utilisation rapide

Option Description Exemple
--mode Mode de prédiction (Invivo ou Exvivo) --mode Invivo
--structure Structure à segmenter (Parenchyma, Airways, Vascular, ParenchymaAirways, All, Lobes) --structure Parenchyma
--input Chemin vers l’image d’entrée (.nii, .nii.gz, .mha, .nrrd) --input ~/data/scan_patient.nrrd
--output Dossier de sortie pour la prédiction (par défaut prediction) --output ~/predictions
--models_dir Chemin pour stocker ou chercher les modèles --models_dir ~/models
--name Nom final du fichier de prédiction (sans extension) --name segmentation_parenchyme

Exemple complet

nnunet_predict \
    --mode Invivo \
    --structure Parenchyma \
    --input ~/data/scan_patient.nrrd \
    --output ~/predictions \
    --models_dir ~/models \
    --name segmentation_parenchyme

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

nnunet_package-0.1.8.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

nnunet_package-0.1.8-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file nnunet_package-0.1.8.tar.gz.

File metadata

  • Download URL: nnunet_package-0.1.8.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for nnunet_package-0.1.8.tar.gz
Algorithm Hash digest
SHA256 16a2975716c092f43cd89311c5444c78502fb247fbf7430217eff7e6061e5f09
MD5 60e89c82406190cbea6d3ddac78b9b34
BLAKE2b-256 d5216291c642043898431ff8c728dabb4b2ae03eee2abb94c16b20c3ced3827a

See more details on using hashes here.

File details

Details for the file nnunet_package-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: nnunet_package-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for nnunet_package-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 354e41b5353fccaeff0beeeb99f1dfb71ab0e7404c7304be4cace2c82a0ec70b
MD5 2b9e30178aa035b6f354984160c84e43
BLAKE2b-256 f0863c04f536c7c0b4dabefce931d8fe188f90c0f6bb9c43d9b39c854176ed57

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