Commit 9e4144d0 authored by dcuai's avatar dcuai
Browse files

Update README.md

parent 7fc800d9
......@@ -5,19 +5,21 @@ MMCV是计算机视觉研究的基础库,主要提供以下功能:图像处
## 安装
组件支持组合
| PyTorch版本 | MMCV版本 | DTK版本 | Python版本 | 推荐编译方式 |
| ----------- | ----------- | ------------------------ | -------------------- | ------------ |
| 2.4.1 | 2.2.0 | 25.04_rc4 | 3.7、3.8、3.9、3.10 | fastpt不转码 |
| 2.4.1 | 2.2.0 | 24.04.1 | 3.7、3.8、3.9、3.10 | hip转码 |
| 2.1.0 | 2.2.0 | 25.04_rc4 | 3.7、3.8、3.9、3.10 | hip转码 |
| 2.1.0 | 2.2.0 | 24.04.1 | 3.7、3.8、3.9、3.10 | hip转码 |
| PyTorch版本 | fastpt版本 |MMCV版本 | DTK版本 | Python版本 | 推荐编译方式 |
| ----------- | ----------- | ----------- | ------------------------ | -----------------| ------------ |
| 2.5.1 | 2.1.0 |2.2.0 | >= 25.04 | 3.8、3.10、3.11 | fastpt不转码 |
| 2.4.1 | 2.0.1 |2.2.0 | >= 25.04 | 3.8、3.10、3.11 | fastpt不转码 |
| 其他 | 其他 | 其他 | 其他 | 3.8、3.10、3.11 | hip转码 |
+ pytorch版本大于2.4.1 && dtk版本大于25.04 推荐使用fastpt不转码编译。
### 1、使用pip方式安装
mmcv whl包下载目录:[http://10.6.10.68:8000/debug/mmcv/dtk-24.04.1/](http://10.6.10.68:8000/debug/mmcv/dtk-24.04.1/),选择对应的pytorch版本和python版本下载对应mmcv的whl包
mmcv whl包下载目录:[光和开发者社区](https://download.sourcefind.cn:65024/4/main/mmcv),选择对应的pytorch版本和python版本下载对应mmcv的whl包
```shell
pip install mmcv* (下载的mmcv的whl包)
pip install torch* (下载torch的whl包)
pip install fastpt* --no-deps (下载fastpt的whl包)
source /usr/local/bin/fastpt -E
pip install mmcv* (下载的mmcv-fastpt的whl包)
```
### 2、使用源码编译方式安装
......@@ -26,17 +28,17 @@ pip install mmcv* (下载的mmcv的whl包)
1. 基于光源pytorch基础镜像环境:镜像下载地址:[光合开发者社区](https://sourcefind.cn/#/image/dcu/pytorch),根据pytorch、python、dtk及系统下载对应的镜像版本。
2. 基于现有python环境:安装pytorch,fastpt whl包下载目录:[http://10.16.4.1:8000/debug/pytorch/dtk25.04/](http://10.16.4.1:8000/debug/pytorch/dtk25.04/),根据python、dtk版本,下载对应pytorch的whl包。安装命令如下:
2. 基于现有python环境:安装pytorch,fastpt whl包下载目录:[光合开发者社区](https://sourcefind.cn/#/image/dcu/pytorch),根据python、dtk版本,下载对应pytorch的whl包。安装命令如下:
```shell
pip install torch* (下载torch的whl包)
pip install fastpt* (下载fastpt的whl包, 安装顺序, 先安装torch,后安装fastpt)
pip install torch* (下载torch的whl包)
pip install fastpt* --no-deps (下载fastpt的whl包, 安装顺序,先安装torch,后安装fastpt)
pip install setuptools==59.5.0 wheel
```
#### 源码编译安装
- 代码下载
```shell
git clone https://developer.hpccube.com/codes/aicomponent/mmcv # 根据编译需要切换分支
git clone http://developer.sourcefind.cn/codes/OpenDAS/mmcv.git # 根据编译需要切换分支
```
- 提供2种源码编译方式(进入mmcv目录):
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment