{"id":26418,"date":"2025-04-19T15:36:39","date_gmt":"2025-04-19T07:36:39","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/26418.html"},"modified":"2025-04-19T15:36:39","modified_gmt":"2025-04-19T07:36:39","slug":"nnu-netv2%e5%9c%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e4%bd%bf%e7%94%a8%e5%85%a8%e6%b5%81%e7%a8%8b%ef%bc%88%e5%b0%8f%e7%99%bd%e8%be%b9%e8%b8%a9%e5%9d%91%e8%be%b9%e5%ad%a6%e4%b9%a0%e7%9a%84%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/26418.html","title":{"rendered":"nnU-Netv2\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u5168\u6d41\u7a0b\uff08\u5c0f\u767d\u8fb9\u8e29\u5751\u8fb9\u5b66\u4e60\u7684\u8bb0\u5f55\uff09"},"content":{"rendered":"<p>conda create -n your_env_name python&#061;x.x<\/p>\n<p>conda activate your_env_name<\/p>\n<p>conda create -n nnunet python&#061;3.9   #\u8fc7\u7a0b\u4e2dy \u786e\u8ba4<br \/>\nconda activate nnunet<\/p>\n<p>\u5e38\u7528conda\u8bed\u53e5\u53c2\u8003&#xff1a;<\/p>\n<p>Anaconda conda\u5e38\u7528\u547d\u4ee4&#xff1a;\u4ece\u5165\u95e8\u5230\u7cbe\u901a_conda\u547d\u4ee4_\u7b28\u725b\u6162\u8015\u7684\u535a\u5ba2-CSDN\u535a\u5ba2<\/p>\n<h3>\u6b65\u9aa4\u4e8c&#xff1a;\u5b89\u88c5pytorch\u5927\u793c\u5305&#xff08;\u6ce8\u610f&#xff1a;pytorch 2.0&#xff09;<\/h3>\n<p>conda install pytorch torchvision torchaudio pytorch-cuda&#061;11.7 -c pytorch -c nvidia<\/p>\n<p>\u4e2d\u95f4\u6709\u62a5\u9519\u91cd\u65b0\u8f93\u5165\u8f93\u5165\u5373\u53ef&#xff0c;\u3010Y\/n\u3011\u8f93\u5165Y\u786e\u8ba4<\/p>\n<p>\u8865\u5145&#xff1a;\u67e5\u770b\u663e\u5361\u7248\u672c,torch\u5b89\u88c5GPU\u7248\u672c\u7684\u65f6\u5019&#xff0c;\u8981\u5b89\u88c5\u663e\u5361\u4ee5\u4e0b\u7684\u7248\u672c&#xff08;\u5373\u4e0a\u8ff0\u4ee3\u7801pytorch-cuda&#061;11.7&#xff0c;\u8fd9\u4e2a11.7\u8981\u5c0f\u4e8e\u663e\u5361\u7684cuda-version\u503c&#xff09;<\/p>\n<p>&#xff08;\u672c\u5730&#xff09;windows&#043;R&#xff0c;\u6253\u5f00**Windows****\u547d\u4ee4&#xff0c;\u8f93\u5165cmd&#xff0c;**\u518d\u8f93\u5165nvidia-smi<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073630-6803527e3ce3a.png\" alt=\"\" \/><\/p>\n<p>&#xff08;\u670d\u52a1\u5668\u7684terminal&#xff09;\u76f4\u63a5\u8f93\u5165nvidia-smi<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073630-6803527e752c8.png\" alt=\"\" \/><\/p>\n<h3>\u6b65\u9aa4\u4e09&#xff1a;\u5b89\u88c5nnunetv2<\/h3>\n<p>git clone https:\/\/github.com\/MIC-DKFZ\/nnUNet.git<br \/>\ncd nnUNet<br \/>\npip install -e . <\/p>\n<p>\u6ce8\u610f\u6700\u540e\u4e00\u884ce\u540e\u9762\u8fd8\u6709\u4e00\u4e2a\u70b9&#xff01;<\/p>\n<p>\u81ea\u5df1\u5c31\u4f1a\u5b89\u88c5nnunetv2\u4e86&#xff01;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073630-6803527eae5aa.png\" alt=\"\" \/><\/p>\n<p>\u4e00\u5957\u6d41\u7a0b\u540e pip list \u91cc\u9762\u6709 nnunetv2 \u5373\u5b8c\u6210&#xff08;\u6216\u8005 pip show nnunetv2&#xff09;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073631-6803527f653c1.png\" alt=\"\" \/><\/p>\n<h3>\u6b65\u9aa4\u56db&#xff1a;\u5f00\u59cb\u914d\u7f6e\u6587\u4ef6\u7ed3\u6784&#xff08;\u53ef\u4ee5\u5728\u672c\u5730\u63d0\u524d\u51c6\u5907\u597d&#xff09;<\/h3>\n<p>\u8fd9\u90e8\u5206\u8fd8\u662f\u548c\u4ee5\u524d\u5dee\u4e0d\u591a<\/p>\n<p>DATASET\u6587\u4ef6\u5939\u4e0b\u65b9\u521b\u5efa\u4e09\u4e2a\u6587\u4ef6\u5939&#xff0c;\u5206\u522b\u4e3a<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073631-6803527fa4474.png\" alt=\"\" \/><\/p>\n<table>\n<tr><\/tr>\n<tbody>\n<tr>\n<td>nnUNet_raw<\/td>\n<td>\u5b58\u653e\u521d\u59cb\u7684\u5f71\u50cf\u548cmask\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>nnUNet_preprocessed<\/td>\n<td>\u9884\u5904\u7406\u540e\u7684\u4e2d\u95f4\u6587\u4ef6\u5b58\u653e\u5730<\/td>\n<\/tr>\n<tr>\n<td>nnUNet_trained_models<\/td>\n<td>\u8bad\u7ec3\u5b8c\u6210\u7684\u6a21\u578b\u3001\u8bad\u7ec3\u8fc7\u7a0b\u5b58\u653e\u5730<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5728nnUNet_raw\u6587\u4ef6\u5939\u4e0b\u65b9\u5728\u521b\u7acb\u4e00\u4e2a&#034;DatsetXXX_NAME\u201d<\/p>\n<p>\u53c2\u8003\u540d&#xff1a;\u201cDataset101_Lung\u201d<\/p>\n<p>&#xff08;\u6570\u5b57\u7f16\u53f7\u662f000-999\u7684\u4e09\u4f4d\u6570\u5b57&#xff0c;\u6700\u597d\u5927\u4e8e200&#xff0c;\u56e0\u4e3a\u6bd4\u8f83\u5c0f\u7684\u6570\u5b57\u5df2\u7ecf\u88abfabian\u7684task id\u5360\u7528&#xff0c;\u4ee5\u514d\u5728\u54ea\u91cc\u83ab\u540d\u5176\u5999\u51b2\u7a81\u4e86&#xff09;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073631-6803527fc685a.png\" alt=\"\" \/><\/p>\n<p>Dataset101_Lung\u4e0b\u56db\u4e2a\u6587\u4ef6\u5939&#043;\u4e00\u4e2ajson\u6587\u4ef6<\/p>\n<table>\n<tr><\/tr>\n<tbody>\n<tr>\n<td>imagesTr<\/td>\n<td>train\u8bad\u7ec3\u96c6\u7684\u533b\u5b66\u5f71\u50cf&#xff08;CT\u3001MRI\u7b49&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>imagesTs<\/td>\n<td>test \u68c0\u9a8c\u96c6\u7684\u533b\u5b66\u5f71\u50cf&#xff08;CT\u3001MRI\u7b49&#xff09;&#xff08;optional&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>labelsTr<\/td>\n<td>train\u8bad\u7ec3\u96c6\u7684label\u6d82\u5c42<\/td>\n<\/tr>\n<tr>\n<td>labelsTs<\/td>\n<td>test \u8bad\u7ec3\u96c6\u7684label\u6d82\u5c42&#xff08;optional&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>dataset.json<\/td>\n<td>\u6587\u4ef6\u4fe1\u606f&#xff0c;\u8be6\u89c1\u6b65\u9aa4\u4e94<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7279\u522b\u6ce8\u610f&#xff0c;\u53d6\u540d\u539f\u5219\u5982\u4e0b&#xff1a;<\/p>\n<p>images\u91cc\u9762\u5728.nii.gz\u524d\u8981\u52a0\u51650000&#xff08;\u4ee3\u8868\u662f\u6a21\u60010&#xff0c;\u82e5\u6709\u5176\u4ed6\u6a21\u6001\u7684\u5c31\u4f9d\u6b210001&#xff0c;\u8fd9\u4e2a\u6570\u5b57\u5728json\u6587\u4ef6\u91cc\u8981\u6709\u4f53\u73b0&#xff0c;\u6bd4\u59820\u6a21\u6001\u662fCT&#xff0c;1\u6a21\u6001\u662fMRI&#xff0c;\u8be6\u60c5\u8bf7\u89c1\u6b65\u9aa46&#xff09;&#xff0c;label\u662f\u540c\u540d\u6587\u4ef6&#xff0c;\u4f46\u6ca1\u67090000,0001<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073631-6803527fec097.png\" alt=\"\" \/><\/p>\n<p>\u4e0d\u540c\u4e8ennunet\u521d\u4ee3\u7248\u672c\u5728nnUNet_raw\u91cc\u9762\u4e0d\u9700\u8981\u989d\u5916\u7684 cropped<\/p>\n<h3>\u6b65\u9aa4\u4e94&#xff1a;\u6570\u636e\u96c6\u7684\u8f6c\u6362\u4e0ejson\u6587\u4ef6<\/h3>\n<p>\u6570\u636e\u96c6\u8f6c\u5316\u8fd9\u6b21\u6ca1\u7528\u4e0a&#xff0c;\u5c31\u5148\u4e0d\u7ec6\u8bf4\u4e86&#xff0c;\u540e\u7eed\u518d\u8865\u5145<\/p>\n<p>json\u6587\u4ef6\u76f8\u8f83nnunet\u521d\u4ee3\u7248\u672c\u6539\u4e86\u597d\u591a\u3002\u4f46\u8003\u8651\u5230\u5176\u5b9e\u5199\u7684\u6bd4\u539f\u5148\u7248\u672c\u66f4\u7b80\u6d01\u4e86&#xff0c;\u53ef\u4ee5\u8ba4\u4e3a\u662f\u4ef6\u597d\u4e8b\u60c5\u5427&#xff1a;<\/p>\n<p>\u6211\u4e00\u5f00\u59cb\u7528\u4e86\u521d\u4ee3\u7684json\u60e8\u906d\u62a5\u9519&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073632-680352801fa51.png\" alt=\"\" \/><\/p>\n<p>\u6807\u51c6\u683c\u5f0f\u7684\u6587\u4ef6\u5982\u4e0b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073632-680352807c837.png\" alt=\"\" \/><\/p>\n<p>nnunetV2\u7ed9\u4e86\u76f8\u5e94\u7684\u811a\u672c&#xff1a;<\/p>\n<p>\u53ef\u53c2\u8003&#xff1a;nnU-Net v2\u7684\u73af\u5883\u914d\u7f6e\u5230\u8bad\u7ec3\u81ea\u5df1\u7684\u6570\u636e\u96c6&#xff08;\u8be6\u7ec6\u6b65\u9aa4&#xff09;_\u5c0f\u841d\u5317hh\u7684\u535a\u5ba2-CSDN\u535a\u5ba2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073632-68035280b47d9.png\" alt=\"\" \/><\/p>\n<p>\u5176\u4e2dlabels 0,1,2,3\u8bf7\u52a1\u5fc5\u5bf9\u5e94\u597d&#xff01;\u6240\u6709mask\u6587\u4ef6\u4e0a\u51fa\u73b0\u7684\u6570\u5b57\u90fd\u8981\u6709\u5f52\u5c5e&#xff0c;\u76ee\u524dnnunet\u5c1a\u4e0d\u652f\u6301\u91cd\u5408\u7684mask&#xff08;\u5373\u4e0d\u540cmask\u4e4b\u95f4\u6709\u4ea4\u96c6&#xff09;\u3002\u5bf9\u6587\u4ef6\u91ccmask\u6570\u5b57\u4f4d\u7f6e\u7684&#xff0c;\u53ef\u4ee5\u6253\u5f00python\u53bb\u8bfb\u6587\u4ef6\u6216\u8005&#xff0c;ITK-SNAP\u8bfb\u4e00\u4e0b&#xff1a;ITK-SNAP Home (itksnap.org)&#034;)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073632-68035280ef5df.png\" alt=\"\" \/><\/p>\n<p>Label1\u662f\u7ea2\u8272&#xff0c;label2\u662f\u7eff\u8272&#xff0c;\u5219\u8fd9\u5c42mask\u7684\u77e9\u9635&#xff0c;\u5bf9\u5e94\u7ea2\u8272\u533a\u57df\u4f4d\u7f6e\u662f1&#xff0c;\u7eff\u8272\u7684\u662f2&#xff0c;\u5176\u4f59&#xff08;background&#xff09;\u662f0<\/p>\n<p>&#xff08;\u5907\u6ce8&#xff1a;ITK-SNAP&#xff0c;\u5305\u62ecpython\u91cc\u9762\u4e00\u4e9b\u9700\u8981\u8c03\u7528itk\u5305&#xff0c;\u90fd\u662f\u5728\u8def\u5f84\u4e2d\u4e0d\u80fd\u51fa\u73b0\u4e2d\u6587\u5b57&#xff0c;\u751a\u81f3\u201c-\u201d\u90fd\u4e0d\u80fd\u51fa\u73b0&#xff0c;\u53ef\u4ee5\u6539\u7528\u4e3a\u201c_\u201d&#xff09;<\/p>\n<h3>\u6b65\u9aa4\u516d&#xff1a;\u4fee\u6539\u73af\u5883\u53d8\u91cf&#xff08;\u4e09\u4e2a&#xff09;<\/h3>\n<p>\u8fd9\u4e00\u6b65\u5373\u4e3a\u91cd\u8981&#xff0c;\u5728\u670d\u52a1\u5668\u4e0a\u9762\u65e0\u6cd5ctrl&#043;H\u7684\u6253\u5f00.bashrc\u6587\u4ef6&#xff0c;\u4e00\u822c\u7684\u672c\u5730\u4e5f\u9700\u8981\u4fee\u6539\u73af\u5883\u53d8\u91cf&#xff0c;\u7528\u8fd9\u4e2a\u65b9\u6cd5\u5e94\u8be5\u4e5f\u53ef\u4ee5<\/p>\n<p>\u9700\u8981\u7528\u5230vim<\/p>\n<p>1\u3001\u8fdb\u5165vim<\/p>\n<p> vim ~\/.zshrc<\/p>\n<p>vim ~\/.bashrc &#xff08;\u5728\u6211\u7684\u4f7f\u7528\u4e2d\u662f vim ~\/.zshrc<\/p>\n<p>2\u3001\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f<\/p>\n<p>:a<\/p>\n<p>&#xff08;\u6ce8\u610f\u5192\u53f7&#xff01;&#xff09;<\/p>\n<p>3\u3001\u4fee\u6539\u4e09\u4e2a\u73af\u5883\u53d8\u91cf&#xff1a;<\/p>\n<p>\u8bf7\u4e00\u4e00\u5bf9\u5e94\u597d\u6b65\u9aa4\u56db \u4e0a\u8ff0\u6587\u4ef6\u683c\u5f0f\u91cc\u7684\u4e09\u4e2a\u6587\u4ef6\u5939<\/p>\n<p>&#xff08;\u53ef\u4ee5\u70b9\u5230\u8fd9\u4e2a\u6587\u4ef6\u5939\u7684\u4f4d\u7f6e&#xff0c;\u7136\u540e\u53f3\u952e\u5f39\u5f00&#xff0c;\u70b9\u51fb\u201c\u590d\u5236\u7edd\u5bf9\u8def\u5f84\u201d&#xff09;<\/p>\n<p>export nnUNet_preprocessed&#061;&#034;\/home\/featurize\/nnUNet\/nnUNetFrame\/DATASET\/nnUNet_preprocessed&#034;<\/p>\n<p>export nnUNet_results&#061;&#034;\/home\/featurize\/nnUNet\/nnUNetFrame\/DATASET\/nnUNet_trained_models&#034;<\/p>\n<p>export nnUNet_raw&#061;&#034;\/home\/featurize\/nnUNet\/nnUNetFrame\/DATASET\/nnUNet_raw&#034;<\/p>\n<p>4\u3001\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f<\/p>\n<p>\u6309\u00a0 Esc<\/p>\n<p>5\u3001\u9000\u51fa\u00a0 \u8bb0\u5f97\u5148\u6309\u4e0a\u4e00\u6b65\u7684Esc<\/p>\n<p>:wq<\/p>\n<p>\u8f93\u5165 \u00a0:wq \u00a0&#xff08; &#xff1a;\u4e0d\u53ef\u5ffd\u7565&#xff0c;\u4fdd\u5b58\u9000\u51fa&#xff09;<\/p>\n<p>\u8f93\u5165 :q!\u00a0\u00a0\u00a0 &#xff08;\u4e0d\u4fdd\u5b58\u9000\u51fa&#xff09;<\/p>\n<p>6\u3001\u9000\u51fa\u540e\u52a0\u8f7d\u66f4\u65b0\u540e\u7684\u914d\u7f6e<\/p>\n<p>source ~\/.zshrc <\/p>\n<p>source ~\/.bashrc\u00a0\u00a0\u00a0 &#xff08;\u6211\u7684\u662fsource ~\/zshrc&#xff09;<\/p>\n<p>7\u3001\u66f4\u65b0\u540e\u91cd\u65b0\u6fc0\u6d3b\u4e4b\u524d\u914d\u7f6e\u7684\u73af\u5883<\/p>\n<p>conda activate your_env_name<\/p>\n<p>conda activate nnunet<\/p>\n<p>\u5e38\u89c1\u95ee\u9898&#xff1a; \u8fd9\u4e2a\u5c31\u662f\u5178\u578b\u73af\u5883\u53d8\u91cf\u6ca1\u914d\u597d&#xff0c;\u62a5\u9519\u5199\u7684\u5f88\u660e\u663e\u4e86&#xff0c;\u5199\u660e\u4e86nnUNet_result\u53d8\u91cf\u4e0d\u5b58\u5728<\/p>\n<p>\u6f5c\u5728\u7684\u95ee\u9898&#xff1a;<\/p>\n<li>\u540d\u5b57&#xff08;\u53ef\u80fd\u5728\u8d85\u7b97\u91cc\u9762\u590d\u5236\u7684\u8def\u5f84\u524d\u9762\u8fd8\u8981\u52a0\u4e0a \/home\/xxxxx\/&#xff09;[\u4e00\u822c\u6765\u8bf4&#xff0c;\u76f4\u63a5\u53f3\u952e\u6587\u4ef6\u5939&#xff0c;\u7136\u540e\u590d\u5236\u7edd\u5bf9\u8def\u5f84\u5c31\u6ca1\u95ee\u9898\u4e86]<\/li>\n<li>\u6587\u4ef6\u7ed3\u6784\u662f\u5426\u6709\u95ee\u9898&#xff0c;\u7279\u522b\u662fraw\u7684\u8def\u5f84\u8981\u662fDATASET01_NAME1\u7684\u4e0a\u4e00\u5c42<\/li>\n<li>\u662f\u5426 source ~\/.zshrc &#xff08;\u5426\u5219\u76f8\u5f53\u4e8e\u6ca1\u5237\u65b0&#xff09;<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073633-68035281229c1.png\" alt=\"\" \/><\/p>\n<h3>\u6b65\u9aa4\u4e03&#xff1a;\u6570\u636e\u96c6\u9884\u5904\u7406<\/h3>\n<p>nnUNetv2_plan_and_preprocess -d\u00a0 TASK-NUM\u00a0\u00a0&#8211;verify_dataset_integrity<\/p>\n<p>TASK-NUM\u662f\u4e4b\u524d\u5199\u7684\u6570\u5b57\u7f16\u53f7<\/p>\n<p>nnUNetv2_plan_and_preprocess -d 101 &#8211;verify_dataset_integrity<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073633-6803528166ae0.png\" alt=\"\" \/><\/p>\n<p>\u5e38\u89c1\u62a5\u9519&#xff1a;RAM\u7206\u4e86&#xff0c;\u6211\u5f53\u65f6\u5728\u62a5\u9519\u56de\u6eaf\u4e00\u4e2a\u4e00\u4e2a\u53bb\u67e5&#xff0c;\u5728plan_preprocess_entrypoints.py\u91cc\u627e\u5230\u4e86\u53ef\u4ee5\u4fee\u6539\u7684\u5730\u65b9<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073634-680352822183a.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073634-68035282d0d50.png\" alt=\"\" \/><\/p>\n<p>default_np &#061; {\u201c2d\u201d:8, \u201c3d_fullres\u201d: 4, \u201c3d_lowres\u201d: 8} \u6539\u6210\u4e862,2,2&#xff08;\u8fd8\u4e0d\u884c\u5c311,1,1&#xff1b;\u518d\u4e0d\u884c\u5c31\u63d0\u5347\u4e0b\u6362\u4e2a\u914d\u7f6e\u5427\u3002\u3002\u3002\u6216\u8005\u4fee\u6539\u4e00\u4e0b\u5176\u4ed6\u770b\u4e0a\u53bb\u80fd\u51cf\u5c11workers\u7684\u5730\u65b9&#xff09;<\/p>\n<p>\u51cf\u5c11\u8fd9\u4e2anp&#xff0c;\u80fd\u591f\u8ba9\u5185\u5b58\u4e0d\u4f1a\u7206&#xff0c;\u4f46\u901f\u5ea6\u80af\u5b9a\u4f1a\u4f4e&#xff0c;\u5efa\u8bae\u5927\u5bb6\u53ef\u4ee5\u8bd5\u8bd5\u81ea\u5df1\u8bbe\u5907\u80fd\u591f\u5bb9\u7eb3\u7684\u6700\u5927\u503c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073635-6803528387bb2.png\" alt=\"\" \/>\u4fee\u6539\u540e\u5185\u5b58\u5c31\u5904\u4e8e\u4e00\u4e2a\u6bd4\u8f83\u5065\u5eb7\u7684\u72b6\u6001\u4e86<\/p>\n<h3>\u6b65\u9aa4\u516b&#xff1a;\u6a21\u578b\u8bad\u7ec3<\/h3>\n<p>\u6211\u8d2a\u65b9\u4fbf&#xff0c;\u76f4\u63a5\u547d\u4ee4\u884c\u91cc\u9762\u5199&#xff0c;\u8dd1\u5b8c\u4e00\u6298\u518d\u5199\u4e0b\u4e00\u6b21\u3002\u5f53\u7136\u4e5f\u53ef\u4ee5\u7f16\u5199\u7ec8\u7aef\u8fd0\u884c\u6b64\u00a0tst.sh\u00a0\u6587\u4ef6&#xff0c;\u4f7f\u7528\u00a0source\u547d\u4ee4\u6267\u884c\u811a\u672c&#xff08;\u5f85\u8865\u5145\u5b66\u4e60&#xff09;<\/p>\n<p>nnUNetv2_train TASK-NUM\u00a02d FOLD<\/p>\n<p>nnUNetv2_train 101 2d 0<br \/>\nnnUNetv2_train 101 2d 1<br \/>\nnnUNetv2_train 101 2d 2<br \/>\nnnUNetv2_train 101 2d 3<br \/>\nnnUNetv2_train 101 2d 4<\/p>\n<p># \u5176\u4e2d101\u8868\u793a\u6570\u636e\u96c6ID&#xff0c;\u4e0a\u8ff0\u63d0\u53ca\u8fc7\u30020\u8868\u793a\u7b2c1\u6298<\/p>\n<h2>2d\u6307\u7684\u662f\u8bad\u7ec3Unet\u4e2d\u76842d\u6a21\u578b&#xff0c;\u53ef\u4ee5\u9009\u62e93d_fullres&#xff0c;3d_lowres<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073635-68035283c39af.png\" alt=\"\" \/><\/p>\n<p>\u5f00\u59cb\u8bad\u7ec3\u4e86&#xff01;Win&#xff01;<\/p>\n<p>nnUNet\/nnunetv2\/training\/nnUNetTrainer\/nnUNetTrainer.py\u8def\u5f84\u4e0b\u53ef\u4ee5\u4fee\u6539\u4e00\u4e9b\u53c2\u6570&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073636-6803528447ce5.png\" alt=\"\" \/>\u6bd4\u5982\u628aepochs\u6539\u4e3a\u81ea\u5df1\u60f3\u8981\u7684\u6570\u5b57&#xff0c;\u7279\u522b\u662f\u521a\u5f00\u59cb\u62ff\u5230\u4e00\u4e2a\u6570\u636e\u7684\u65f6\u5019&#xff0c;\u60f3\u5148\u968f\u4fbf\u8bad\u7ec3\u4e00\u4e0b&#xff0c;\u8282\u7ea6\u65f6\u95f4\u8dd1\u4e2a\u51e0\u5341\u6b21\u5c31\u5b8c\u5168ok\u4e86<\/p>\n<p>\u4e00\u4e9b\u547d\u4ee4\u53c2\u6570\u53ef\u4ee5 \u5728\u540e\u9762\u52a0\u4e0a-h\u6765\u67e5\u770b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073636-680352847e14c.png\" alt=\"\" \/><\/p>\n<p>3.\u00a0\u5728\u6b63\u5e38\u8fd0\u884c\u4ee3\u7801\u540e\u9047\u5230\u7684\u95ee\u9898&#xff1a;<\/p>\n<p>Ctrl&#043;C\u4f1a\u4e2d\u65ad\u5b9e\u9a8c&#xff0c;\u539f\u6765\u6307\u4ee4\u540e\u9762\u52a0&#8211;c\u53ef\u4ee5\u63a5\u7740\u8fd0\u884c&#xff0c;\u518d\u4e5f\u4e0d\u62c5\u5fc3\u8dd1\u4e86\u4e00\u6574\u665a\u7684\u4e1c\u897f\u767d\u8dd1\u4e86&#xff01;<\/p>\n<p>4.\u7ed3\u679c\u67e5\u770b&#xff0c;\u6bcf\u4e00\u6298\u8bad\u7ec3\u5b8c\u90fd\u53ef\u4ee5\u770b\u770b\u8bad\u7ec3\u7684\u8fc7\u7a0b&#xff1a;<\/p>\n<p>\u6bd4\u5982progress.png\u5c31\u8bb0\u5f55\u4e86\u8bad\u7ec3\u8fed\u4ee3\u6b21\u6570loss\u7b49\u7684\u53d8\u5316\u8d8b\u52bf&#xff0c;\u53ca\u65f6\u8c03\u6574<\/p>\n<p>\u4f4d\u7f6e\u5728nnUNet\/nnUNetFrame\/DATASET\/nnUNet_results\/Dataset101_Lung\/nnUNetTrainer__nnUNetPlans__2d\/fold_0\/progress.png<\/p>\n<p>\u5176\u4e2dnnUNetTrainer__nnUNetPlans__2d\u4e2dfold0&#xff0c;1,2,3,4\u4e0b\u90fd\u80fd\u770b\u5230\u4e00\u4e9b\u8bad\u7ec3\u8fc7\u7a0b\u7684\u8bb0\u5f55<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073636-68035284d61a1.png\" alt=\"\" \/><\/p>\n<p>\u4e0d\u540c\u4e8e\u4e00\u822c\u7684\u8fed\u4ee3\u8fc7\u7a0b&#xff0c;nnunet\u8bad\u7ec3\u6ca1\u6709early stop\u6982\u5ff5&#xff0c;Fabian\u81ea\u5df1\u5728github\u4e0a\u89e3\u91ca\u4e86<\/p>\n<p><img decoding=\"async\" src=\"2025-04-19jo1q1grkgyf.png\" alt=\"\" \/><\/p>\n<h3>\u6b65\u9aa4\u4e5d&#xff1a;\u6a21\u578b\u63a8\u7406<\/h3>\n<p>\u53ef\u53c2\u8003&#xff1a;<\/p>\n<p>nnUNet\u5b9e\u6218\u4e00\u4f7f\u7528\u9884\u8bad\u7ec3nnUNet\u6a21\u578b\u8fdb\u884c\u63a8\u7406_nnunet \u63a8\u7406_Tina\u59d0\u7684\u535a\u5ba2-CSDN\u535a\u5ba2<\/p>\n<p>nnUnet v2\u9879\u76ee\u5b66\u4e60\u8bb0\u5f55&#xff0c;\u8bad\u7ec3\u81ea\u5b9a\u4e49\u6a21\u578b&#xff08;\u4e0d\u662fUnet&#xff09; &#8211; \u77e5\u4e4e (zhihu.com)&#034;)<\/p>\n<p>\u7cbe\u7ec6\u5316\u4fee\u6539 \u4fee\u6539loss\u7b49<\/p>\n<p>\u2191\u53c2\u8003&#xff0c;\u53ef\u7528\u4e8e\u63d0\u524d\u63a8\u7406<\/p>\n<p>nnUNetv2_find_best_configuration 101 -f 0 1 2 3 4 -c 2d<\/p>\n<p><img decoding=\"async\" src=\"2025-04-19zhnhhigecyn.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"2025-04-19nwioxt43zvi.png\" alt=\"\" \/><\/p>\n<h3>\u6b65\u9aa4\u5341&#xff1a;\u6a21\u578b\u9884\u6d4b<\/h3>\n<p>\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\u7528\u4e8e\u50a8\u5b58\u9884\u6d4b\u7684mask\u6587\u4ef6<\/p>\n<p>-I \u540e\u8ddf\u7740\u662f\u9700\u8981\u9884\u6d4bmask\u7684\u539f\u5f71\u50cf\u6587\u4ef6&#xff0c; -o\u540e\u9762\u8ddf\u7740label\u50a8\u5b58\u7684\u4f4d\u7f6e<\/p>\n<p>nUNetv2_predict -i\u539f\u5f71\u50cf\u6587\u4ef6\u5939\u00a0-o\u00a0 \u50a8\u5b58\u4f4d\u7f6e\u00a0-d TASK-NUM\u00a0-c 2d<\/p>\n<p>nnUNetv2_predict -i nnUNet\/nnUNetFrame\/DATASET\/nnUNet_raw\/Dataset101_Lung\/imagesTr -o \/home\/featurize\/nnUNet\/nnUNetFrame\/DATASET\/nnUNet_mask\/Dataset101_lung\/trainmask -d 101 -c 2d<\/p>\n<p><img decoding=\"async\" src=\"2025-04-19smwqdmfxggy.png\" alt=\"\" \/><\/p>\n<h3>\u6b65\u9aa4\u5341\u4e00&#xff1a;\u9884\u6d4b\u7ed3\u679c\u5206\u6790<\/h3>\n<p>nnunet\u6709\u81ea\u5df1\u5185\u7f6e\u7684\u8bc4\u4ef7\u6587\u4ef6&#xff0c;\u4f4d\u7f6e\u5728<\/p>\n<p>\u9884\u6d4b\u7ed3\u679c\u5206\u6790&#xff1a;<\/p>\n<p>\/home\/featurize\/nnUNet\/nnunetv2\/evaluation\/evaluate_predictions.py<\/p>\n<p><img decoding=\"async\" src=\"2025-04-19ba1yzok2mi0.png\" alt=\"\" \/><\/p>\n<p>\u4fee\u6539\u5373\u53ef&#xff0c;\u518d\u5728terminal cd\u5230\u8be5py\u6587\u4ef6\u6240\u5728\u4f4d\u7f6e,\u8f93\u5165python3 evaluate_prediction.py&#xff0c;\u63a5\u7740\u53bb\u67e5\u770bsummary.json\u62a5\u544a\u5373\u53ef<\/p>\n<p><img decoding=\"async\" src=\"2025-04-19lu2eratprtg.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf16\u6b21\u3002images\u91cc\u9762\u5728.nii.gz\u524d\u8981\u52a0\u51650000\uff08\u4ee3\u8868\u662f\u6a21\u60010\uff0c\u82e5\u6709\u5176\u4ed6\u6a21\u6001\u7684\u5c31\u4f9d\u6b210001\uff0c\u8fd9\u4e2a\u6570\u5b57\u5728json\u6587\u4ef6\u91cc\u8981\u6709\u4f53\u73b0\uff0c\u6bd4\u59820\u6a21\u6001\u662fCT\uff0c1\u6a21\u6001\u662fMRI\uff0c\u8be6\u60c5\u8bf7\u89c1\u6b65\u9aa46\uff09\uff0clabel\u662f\u540c\u540d\u6587\u4ef6\uff0c\u4f46\u6ca1\u67090000,0001\u3002\uff08\u5907\u6ce8\uff1aITK-SNAP\uff0c\u5305\u62ecpython\u91cc\u9762\u4e00\u4e9b\u9700\u8981\u8c03\u7528itk\u5305\uff0c\u90fd\u662f\u5728\u8def\u5f84\u4e2d\u4e0d\u80fd\u51fa\u73b0\u4e2d\u6587\u5b57\uff0c\u751a\u81f3\u201c-\u201d\u90fd\u4e0d\u80fd\u51fa\u73b0\uff0c\u53ef\u4ee5\u6539\u7528\u4e3a\u201c_\u201d\uff09Label1\u662f\u7ea2\u8272\uff0clabel2\u662f\u7eff\u8272\uff0c\u5219\u8fd9\u5c42mask\u7684\u77e9\u9635\uff0c\u5bf9\u5e94\u7ea2\u8272\u533a\u57df\u4f4d\u7f6e\u662f1\uff0c\u7eff\u8272\u7684\u662f2\uff0c\u5176\u4f59\uff08background\uff09\u662f0\u3002_\u5728anaconda\u4e2d\u6fc0\u6d3b\u6fc0\u6d3b\u73af\u5883 \u7136\u540e\u8fdb\u5165nnunetv2\u6240\u5728\u7684\u8def\u5f84 \u8f93\u5165pip install -e.\u662f\u4ec0<\/p>\n","protected":false},"author":2,"featured_media":26398,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[371,43,44],"topic":[],"class_list":["post-26418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-371","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>nnU-Netv2\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u5168\u6d41\u7a0b\uff08\u5c0f\u767d\u8fb9\u8e29\u5751\u8fb9\u5b66\u4e60\u7684\u8bb0\u5f55\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/26418.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"nnU-Netv2\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u5168\u6d41\u7a0b\uff08\u5c0f\u767d\u8fb9\u8e29\u5751\u8fb9\u5b66\u4e60\u7684\u8bb0\u5f55\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf16\u6b21\u3002images\u91cc\u9762\u5728.nii.gz\u524d\u8981\u52a0\u51650000\uff08\u4ee3\u8868\u662f\u6a21\u60010\uff0c\u82e5\u6709\u5176\u4ed6\u6a21\u6001\u7684\u5c31\u4f9d\u6b210001\uff0c\u8fd9\u4e2a\u6570\u5b57\u5728json\u6587\u4ef6\u91cc\u8981\u6709\u4f53\u73b0\uff0c\u6bd4\u59820\u6a21\u6001\u662fCT\uff0c1\u6a21\u6001\u662fMRI\uff0c\u8be6\u60c5\u8bf7\u89c1\u6b65\u9aa46\uff09\uff0clabel\u662f\u540c\u540d\u6587\u4ef6\uff0c\u4f46\u6ca1\u67090000,0001\u3002\uff08\u5907\u6ce8\uff1aITK-SNAP\uff0c\u5305\u62ecpython\u91cc\u9762\u4e00\u4e9b\u9700\u8981\u8c03\u7528itk\u5305\uff0c\u90fd\u662f\u5728\u8def\u5f84\u4e2d\u4e0d\u80fd\u51fa\u73b0\u4e2d\u6587\u5b57\uff0c\u751a\u81f3\u201c-\u201d\u90fd\u4e0d\u80fd\u51fa\u73b0\uff0c\u53ef\u4ee5\u6539\u7528\u4e3a\u201c_\u201d\uff09Label1\u662f\u7ea2\u8272\uff0clabel2\u662f\u7eff\u8272\uff0c\u5219\u8fd9\u5c42mask\u7684\u77e9\u9635\uff0c\u5bf9\u5e94\u7ea2\u8272\u533a\u57df\u4f4d\u7f6e\u662f1\uff0c\u7eff\u8272\u7684\u662f2\uff0c\u5176\u4f59\uff08background\uff09\u662f0\u3002_\u5728anaconda\u4e2d\u6fc0\u6d3b\u6fc0\u6d3b\u73af\u5883 \u7136\u540e\u8fdb\u5165nnunetv2\u6240\u5728\u7684\u8def\u5f84 \u8f93\u5165pip install -e.\u662f\u4ec0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/26418.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T07:36:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073630-6803527e3ce3a.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/26418.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/26418.html\",\"name\":\"nnU-Netv2\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u5168\u6d41\u7a0b\uff08\u5c0f\u767d\u8fb9\u8e29\u5751\u8fb9\u5b66\u4e60\u7684\u8bb0\u5f55\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T07:36:39+00:00\",\"dateModified\":\"2025-04-19T07:36:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/26418.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/26418.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/26418.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"nnU-Netv2\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u5168\u6d41\u7a0b\uff08\u5c0f\u767d\u8fb9\u8e29\u5751\u8fb9\u5b66\u4e60\u7684\u8bb0\u5f55\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"nnU-Netv2\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u5168\u6d41\u7a0b\uff08\u5c0f\u767d\u8fb9\u8e29\u5751\u8fb9\u5b66\u4e60\u7684\u8bb0\u5f55\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/26418.html","og_locale":"zh_CN","og_type":"article","og_title":"nnU-Netv2\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u5168\u6d41\u7a0b\uff08\u5c0f\u767d\u8fb9\u8e29\u5751\u8fb9\u5b66\u4e60\u7684\u8bb0\u5f55\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf16\u6b21\u3002images\u91cc\u9762\u5728.nii.gz\u524d\u8981\u52a0\u51650000\uff08\u4ee3\u8868\u662f\u6a21\u60010\uff0c\u82e5\u6709\u5176\u4ed6\u6a21\u6001\u7684\u5c31\u4f9d\u6b210001\uff0c\u8fd9\u4e2a\u6570\u5b57\u5728json\u6587\u4ef6\u91cc\u8981\u6709\u4f53\u73b0\uff0c\u6bd4\u59820\u6a21\u6001\u662fCT\uff0c1\u6a21\u6001\u662fMRI\uff0c\u8be6\u60c5\u8bf7\u89c1\u6b65\u9aa46\uff09\uff0clabel\u662f\u540c\u540d\u6587\u4ef6\uff0c\u4f46\u6ca1\u67090000,0001\u3002\uff08\u5907\u6ce8\uff1aITK-SNAP\uff0c\u5305\u62ecpython\u91cc\u9762\u4e00\u4e9b\u9700\u8981\u8c03\u7528itk\u5305\uff0c\u90fd\u662f\u5728\u8def\u5f84\u4e2d\u4e0d\u80fd\u51fa\u73b0\u4e2d\u6587\u5b57\uff0c\u751a\u81f3\u201c-\u201d\u90fd\u4e0d\u80fd\u51fa\u73b0\uff0c\u53ef\u4ee5\u6539\u7528\u4e3a\u201c_\u201d\uff09Label1\u662f\u7ea2\u8272\uff0clabel2\u662f\u7eff\u8272\uff0c\u5219\u8fd9\u5c42mask\u7684\u77e9\u9635\uff0c\u5bf9\u5e94\u7ea2\u8272\u533a\u57df\u4f4d\u7f6e\u662f1\uff0c\u7eff\u8272\u7684\u662f2\uff0c\u5176\u4f59\uff08background\uff09\u662f0\u3002_\u5728anaconda\u4e2d\u6fc0\u6d3b\u6fc0\u6d3b\u73af\u5883 \u7136\u540e\u8fdb\u5165nnunetv2\u6240\u5728\u7684\u8def\u5f84 \u8f93\u5165pip install -e.\u662f\u4ec0","og_url":"https:\/\/www.wsisp.com\/helps\/26418.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T07:36:39+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419073630-6803527e3ce3a.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/26418.html","url":"https:\/\/www.wsisp.com\/helps\/26418.html","name":"nnU-Netv2\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u5168\u6d41\u7a0b\uff08\u5c0f\u767d\u8fb9\u8e29\u5751\u8fb9\u5b66\u4e60\u7684\u8bb0\u5f55\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T07:36:39+00:00","dateModified":"2025-04-19T07:36:39+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/26418.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/26418.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/26418.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"nnU-Netv2\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u5168\u6d41\u7a0b\uff08\u5c0f\u767d\u8fb9\u8e29\u5751\u8fb9\u5b66\u4e60\u7684\u8bb0\u5f55\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/26418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=26418"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/26418\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/26398"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=26418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=26418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=26418"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=26418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}