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
355115f0
Commit
355115f0
authored
Jul 31, 2023
by
huchen
Browse files
Update README.md
parent
02be4bc7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+4
-4
No files found.
README.md
View file @
355115f0
...
@@ -15,9 +15,9 @@ pip install mmcv* (下载的mmcv的whl包)
...
@@ -15,9 +15,9 @@ pip install mmcv* (下载的mmcv的whl包)
#### 编译环境准备
#### 编译环境准备
提供2种环境准备方式:
提供2种环境准备方式:
1
、
基于光源pytorch基础镜像环境:镜像下载地址:
[
https://sourcefind.cn/#/image/dcu/pytorch
](
https://sourcefind.cn/#/image/dcu/pytorch
)
根据pytorch、python、dtk及系统下载对应的镜像版本。
1
.
基于光源pytorch基础镜像环境:镜像下载地址:
[
https://sourcefind.cn/#/image/dcu/pytorch
](
https://sourcefind.cn/#/image/dcu/pytorch
)
根据pytorch、python、dtk及系统下载对应的镜像版本。
2
、
基于现有python环境:安装pytorch,pytorch whl包下载目录:
[
https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04
](
https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04
)
,根据python、dtk版本,下载对应pytorch的whl包。安装命令如下:
2
.
基于现有python环境:安装pytorch,pytorch whl包下载目录:
[
https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04
](
https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04
)
,根据python、dtk版本,下载对应pytorch的whl包。安装命令如下:
```
shell
```
shell
pip
install
torch
*
(
下载的torch的whl包
)
pip
install
torch
*
(
下载的torch的whl包
)
pip
install
setuptools
=
59.5.0 wheel
pip
install
setuptools
=
59.5.0 wheel
...
@@ -30,11 +30,11 @@ git clone https://developer.hpccube.com/codes/aicomponent/mmcv # 根据编译需
...
@@ -30,11 +30,11 @@ git clone https://developer.hpccube.com/codes/aicomponent/mmcv # 根据编译需
```
```
-
提供2种源码编译方式(进入mmcv目录):
-
提供2种源码编译方式(进入mmcv目录):
```
```
1
、
编译whl包并安装
1
.
编译whl包并安装
MMCV_WITH_OPS=1 ROCM_HOME=${ROCM_PATH} python3 setup.py -v bdist_wheel
MMCV_WITH_OPS=1 ROCM_HOME=${ROCM_PATH} python3 setup.py -v bdist_wheel
pip install dist/mmcv*
pip install dist/mmcv*
2
、
源码编译安装
2
.
源码编译安装
MMCV_WITH_OPS=1 ROCM_HOME=${ROCM_PATH} python3 setup.py install
MMCV_WITH_OPS=1 ROCM_HOME=${ROCM_PATH} python3 setup.py install
```
```
...
...
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