当前位置: 首页 > article >正文

下载安装umamba教程使用命令

1. 至少要求 Ubuntu 20.04,CUDA 11.8

conda create -n umamba python=3.10 

conda activate umamba

pip3 install torch==2.0.1 torchvision==0.15.2

(或 pip install torch==2.6.0 torchvision==0.15.3)

2. 首先下载whl文件,然后pip install **.whl文件 (必须)

(1)从Releases · Dao-AILab/causal-conv1d · GitHub中选择对应的causal_conv1d

其中cu118表示cuda版本至少大于等于11.8;cxx11abiTrue和cxx11abiFALSE表示关于C++ ABI的标志,cxx11abiFALSE兼容性更好,一般选择它;cp310表示Python 3.10

(2)从Releases · state-spaces/mamba · GitHub中选择对应的mamba-ssm版本
(参考:mamba-ssm安装说明(Ubuntu)-CSDN博客)

3.

pip3 install nnunetv2  (如果复现的不是umamba 而是nnunetv1,则pip3 install nnunet,以上和以下内容均不是针对nnunetv1的,如果想看如何复现nnunetv1,可看我的其他博客)

4. 使用命令

nnUNetv2_plan_and_preprocess -d 3 --verify_dataset_integrity

nnUNetv2_train 3 3d_fullres 0 -tr nnUNetTrainerUMambaEnc

nnUNetv2_predict -i /home/chengi/student/lhh/umamba/U-Mamba/data/nnUNet_raw/Dataset003_Leopard/imagesTs -o /home/chengi/student/lhh/umamba/U-Mamba/data/nnUNet_raw/Dataset003_Leopard/inferTs -d 3 -c 3d_fullres -f 0 -tr nnUNetTrainerUMambaBot -chk /home/chengi/student/lhh/umamba/U-Mamba/data/nnUNet_results/Dataset003_Leopard/nnUNetTrainerUMambaBot__nnUNetPlans__3d_fullres/fold_0/checkpoint_best.pth

运行 evaluation.py 进行评估结果 


http://www.kler.cn/a/561009.html

相关文章:

  • Golang的静态强类型、编译型、并发型
  • Maven 依赖管理基础(一)
  • uniapp开发,轮播图,文字省略号,具名插槽的实现
  • springboot实现文件上传到华为云的obs
  • 前端面试题---vue和react的区别
  • Ubuntu及其衍生系统安装Python
  • VMware17.6+CentOS 8安装教程
  • C++核心指导原则: 错误处理
  • AWS S3深度解析:十大核心应用场景与高可用架构设计实践
  • Pretraining Language Models with Text-Attributed Heterogeneous Graphs
  • kotlin 知识点五 泛型和委托
  • Kafka集群性能测试实战指南:从规划到验证,全面掌握高效测试方案
  • 《2025国内免费DeepSeek-R1自部署平台实测指南:三大运营商/腾讯/华为哪家强?附避坑清单》
  • python学智能算法(四)|遗传算法:原理认识和极大值分析
  • 注意力机制在 Transformer 模型中的核心作用剖析
  • Docker下的Elastic search
  • 无前端经验如何快速搭建游戏站:使用 windsurf 从零到上线的详细指南
  • 机器学习数学基础:34.点二列
  • Vue3中watchEffect、watchPostEffect、watchSyncEffect的区别
  • 在LangFlow中集成OpenAI Compatible API类型的大语言模型