nn unet批量处理python代码求助

软件版本
问题描述:我想使用3dslicer软件中的nn UNet插件来对一批数据进行膀胱MRI分割。我的膀胱数据路径为/Volumes/T7 Shield/data2412all/12_20/abnormal_t2w。 我的膀胱mri的数据格式为nii。请先帮我把数据加载到slicer软件中。

然后通过module finder的搜索框查找nn UNet,查到nn UNet后,选择nn UNet后再点击switch to module。成功进入nn UNet后,input volume中选择加载的t2w图像文件。然后使nn UNet 的Model Path为/Users/**/nnuet weight/Dataset850_TotalSegMRI_part1_organs_1088subj。然后点击apply。等到slicer软件对图像进行分割。

此外我还发现以下内容

nnUNet

Category: Segmentation

This extension is meant to streamline the integration of nnUnet based models into 3D Slicer.

It allows for quick and reliable nnUNet dependency installation in 3D Slicer environment and provides simple logic to launch nnUNet prediction on given directories.

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

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.

Contributors: Thibault Pelletier (Kitware SAS)

Internal name: SlicerNNUNet

Type: Python Scripted Loadable

Location: /Applications/Slicer.app/Contents/Extensions-33241/NNUNet/lib/Slicer-5.8/qt-scripted-modules/SlicerNNUNet.py

segment statisticscsv/Volumes/T7 Shield/data2412all/12_20/result