nnunet训练

数据预处理

运行python Task042_oasis.py

报错

nnUNet_raw_data_base is not defined and nnU-Net can only be used on data for which preprocessed files are alady present on your system. nnU-Net cannot be used for experiment planning and preprocessing like this. If ts is not intended, please read documentation/setting_up_paths.md for information on how to set this up propey.
nnUNet_preprocessed is not defined and nnU-Net can not be used for preprocessing or training. If this is notntended, please read documentation/setting_up_paths.md for information on how to set this up.
RESULTS_FOLDER is not defined and nnU-Net cannot be used for training or inference. If this is not intended havior, please read documentation/setting_up_paths.md for information on how to set this up.
Traceback (most recent call last):
  File "/home/mt/nnUNet/nnunet/dataset_conversion/Task042_OASIS_34.py", line 54, in <module>
    target_base = join(nnUNet_raw_data, task_name)
  File "/mnt/d1/anaconda3/lib/python3.9/posixpath.py", line 76, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

解决办法: linux环境路径问题,修改(vim .bashrc)并运行source .bashrc

nnUNet_plan_and_preprocess -t XXX --verify_dataset_integrity

在nnunet\experiment_planning文件夹下找到nnUNet_plan_and_preprocess.py

训练

nnunet\run下找到run_training.py,输入参数,3d_fullres nnUNetTrainerV2 8 4

在inference文件夹中找到predict_simple.py文件,然后输入参数就可以调试了

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值