BSD 3-Clause "New" or "Revised" License

项目介绍

KitwareMedical/SlicerNNUnet 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前获得 77 个 Star、17 次 Fork。

仓库全名
KitwareMedical/SlicerNNUnet
开源许可证
BSD 3-Clause "New" or "Revised" License
Star 数
77
Fork 数
17
未关闭 Issue
11

README 摘要

Slicer nnUNet Table of contents Introduction Acknowledgments Using the extension Changelog Expected Weight Folder Structure Contributing Introduction This module allows to install and run nnUNet trained models in 3D Slicer with only the training folder. It streamlines development and integration of new nnUNet models into the 3D Slicer environment. Acknowledgments This module was originally co-financed by the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

SlicerNNUnet 用什么语言开发?

主要使用 Python 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前有 77 个 Star。

SlicerNNUnet 可以免费商用吗?

仓库采用 BSD 3-Clause "New" or "Revised" License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 SlicerNNUnet 的源码?

可以直接克隆仓库:git clone https://github.com/KitwareMedical/SlicerNNUnet.git,默认分支为 main;安装与运行步骤见仓库 README。

SlicerNNUnet 最近还在维护吗?

仓库最近一次更新为 2 周前,当前有 11 个未关闭 Issue;Star 数为 77,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

3D Slicer nnUNet integration to streamline usage for nnUNet based AI extensions.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
119
价值分
51
活跃状态
活跃

语言占比

CMake
Python

README

Slicer nnUNet

Table of contents

Introduction

This module allows to install and run nnUNet trained models in 3D Slicer with only the training folder.

It streamlines development and integration of new nnUNet models into the 3D Slicer environment.

Acknowledgments

This module was originally co-financed by the Fédération Française d'Orthodontie (FFO) as part of the Dental Segmentator developments and the Cure Overgrowth Syndromes (COSY) RHU Project.

The installation steps are based on the work done in the Slicer Total Segmentator extension.

This extension interfaces 3D Slicer with the nnUNet library.

Isensee, F., Jaeger, P. F., Kohl, S. A., Petersen, J., & Maier-Hein, K. H. (2021). nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation. Nature methods, 18(2), 203-211.

Using the extension

This extension can be installed directly using Slicer’s extension manager.

Once installed, navigate to Segmentation>nnUNet in the modules drop down menu or search directly for nnUnet.

Once in the widget, you can install nnUNet’s dependencies by clicking on the “nnUNet Install” button.

This area will display the current version of nnUNet in 3D Slicer’s environment. If nnUNet is not yet installed, the current version will display None. It can be installed by clicking on the install Button.

After the install is complete, the current version should display the latest nnUNet version or the version as set in the “To install” field.

Note that the extension may require a 3D Slicer restart before running the inference.

Once the nnUNet is correctly installed, click on the ‘nnUNet Run Settings’ button to set the path to the Model to use. This path will be saved for further usage after the first segmentation.

The provided model path should contain the nnUNet ‘dataset.json’ file.

[!NOTE] To test this extension, you can download the Total Segmentator NNUNet weights and use the CTChest Sample.

[!WARNING] The model weight folder structure should follow the nnUNet expected weight structure for this module to work (see the expected weight folder structure section)

Select the volume on which to run the model using the volume input editor.

Then click on the Apply button.

The logs console will display all the information regarding running the input model.

Once the model has finished running, the segmentation will be loaded into 3D Slicer with its associated labels. It can then be viewed and edited in the Segment Editor module.

Expected weight folder structure

To properly run the nnUNet prediction, the nnUNet weight folder structure should be preserved.

nnUNet structure should look like the following :

  • <dataset_id> : The dataset id should be either a string beginning by Dataset or an integer
    • <trainer_name><plan_name><config_name> : default configuration folder name is nnUNetTrainer__nnUNetPlans__3d_fullres
      • fold_<> : Fold folder from 0 to n containing the training weights
        • <weight_name> : By default the weight name is checkpoint_final.pth it can also be modified using the Parameter class
      • dataset.json : Configuration file containing dataset labels

If this structure is not preserved, the inference will raise an error.

The Parameter class provides an isValid method to check if the provided model structure is valid.

Please read the official nnUNet documentation for more information.

Contributing

This project welcomes contributions. It follows Slicer’s rules for contributions. If you want more information about how you can contribute, please refer to the CONTRIBUTING.md file.

评论

暂无评论