Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
9e4144d0
Commit
9e4144d0
authored
May 29, 2025
by
dcuai
Browse files
Update README.md
parent
7fc800d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
README.md
README.md
+14
-12
No files found.
README.md
View file @
9e4144d0
...
...
@@ -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包下载目录:
[
光和开发者社区
](
http
s
://
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包下载目录:
[
光合开发者社区
](
http
s
://
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 http
s
://developer.
hpccube.com/codes/aicomponent
/mmcv
# 根据编译需要切换分支
git clone http://developer.
sourcefind.cn/codes/OpenDAS
/mmcv
.git
# 根据编译需要切换分支
```
-
提供2种源码编译方式(进入mmcv目录):
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment