You are on page 1of 1

1. conda create -n GMMSeg python=3.

9 -y
2. pip install torch==1.12.0+cu113 torchvision==0.13.0+cu113 --extra-index-url
https://download.pytorch.org/whl/cu113
3. pip install mmsegmentation==0.26.0
4. 安裝 mmcv
樣板:pip install mmcv==2.1.0 -f
https://download.openmmlab.com/mmcv/dist/cu113/torch1.12/index.html
其中 cu113 以及 torch1.12 可以根據需調整, 只要可以打開連結即可, 另外需要注意打開後尋找能夠
配合 code 使用以及 mmsegmentation 的 mmcv 版本下載, 以 GMMSeg 為例, 我們需要
1.13.1<=mmcv version<=1.6.0, 所以安裝時指令為
pip install mmcv-full==1.6.0 -f
https://download.openmmlab.com/mmcv/dist/cu113/torch1.12/index.html

5. 理論上 mmcv-full 以及 mmcv 擇一安裝即可, 但 mmcv 有可能缺一些功能, 建議裝 full 版本


6. pip install mmengine

useful info:

1. 查尋 mmsegmentation 合 mmcv 的兼容問題:https://mmsegmentation.readthedocs.io/zh-cn/0.x/


faq.html

You might also like