安装mmcv
源码地址:
https://github.com/open-mmlab/mmcv
对应表格确认自己环境的pytorch版本和cuda版本
按照指定命令安装
注意!!!
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/{cu_version}/{torch_version}/index.html
其中的{mmcv_version}要替换为具体的版本号
如:
pip install mmcv-full==1.3.9 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html

安装mmseg
虽然代码中用的是import mmseg
但是安装的时候mmseg要写全
命令为:
pip install mmsegmentation
最后
以上就是精明皮带最近收集整理的关于安装mmcv和mmseg的全部内容,更多相关安装mmcv和mmseg内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复