主要参考下文博主,本文是遇到的一些问题的记录
原文链接:https://blog.csdn.net/weixin_44858814/article/details/124467877
1.修改主目录中的 .bashrc 文件,通过文本编辑器或者vim修改
vim ~/.bashrc
将以下代码添加到 .bashrc 文件的底部
修改成上一步建立的三个文件夹的路径
export nnUNet_raw_data_base="/media/fabian/nnUNet_raw_data_base"
export nnUNet_preprocessed="/media/fabian/nnUNet_preprocessed"
export RESULTS_FOLDER="/media/fabian/nnUNet_trained_models"
我添加以后还是出现了以下问题:
RuntimeError: Could not find a task with the ID 0. Make sure the requested task ID exists and that nnU-Net knows where raw and preprocessed data are located (see Documentation - Installation). Here are your currently defined folders:
nnUNet_preprocessed=None
RESULTS_FOLDER=None
解决:
打开“Edit Configurations”——Environment variables直接添加。
注:不要加引号,否则运行preprocess会出现路径问题。