Skip to main content

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

Metadata

Release files for nnUNet-package 0.1.19

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

Source distribution (sdist)

Source distribution for nnUNet-package 0.1.19
File Size Uploaded Provenance Actions
nnunet_package-0.1.19.tar.gz 5.7 kB Without provenance Details for nnunet_package-0.1.19.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nnUNet-package 0.1.19
File Interpreter ABI Platform Actions
nnunet_package-0.1.19-py3-none-any.whl Python 3 none any Details for nnunet_package-0.1.19-py3-none-any.whl

Total release size: 12.4 kB

Release files / nnunet_package-0.1.19.tar.gz

Download URL nnunet_package-0.1.19.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
72841adc03066f0c455ff31cd8a82ff27ef86c64e755e0fbb5f164dc4893e5c0
BLAKE2b-256 checksum
How to use checksums
87db12abb0a9e447f0161db463c241482507e0d6c432bc42660311b98dae3807
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.21

Release files / nnunet_package-0.1.19-py3-none-any.whl

Download URL nnunet_package-0.1.19-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be5652cbb12f6e199dafa8fbffd631a996f751833205baecb0710ff76b643bb9
BLAKE2b-256 checksum
How to use checksums
a4d552d83daf57d1e2eabd1a09e8272484d434b8c177fc224e9fd6263e97df00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.21

Security for nnUNet-package 0.1.19

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.19 This release

2 release files No provenance

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