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
02be4bc7
You need to sign in or sign up before continuing.
Commit
02be4bc7
authored
Jul 31, 2023
by
huchen
Browse files
Update README.md
parent
9a4bd122
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
README.md
README.md
+11
-14
No files found.
README.md
View file @
02be4bc7
# <div align="center"><strong>MMCV</strong></div>
# <div align="center"><strong>MMCV</strong></div>
## 简介
## 简介
MMCV是计算机视觉研究的基础库,
他
提供
了
以下功能:图像处理、图像和标注结果可视化、图像转换、多种CNN网络结构、高质量实现的常见CUDA算子。MMCV官方github:
[
https://github.com/open-mmlab/mmcv
](
https://github.com/open-mmlab/mmcv
)
MMCV是计算机视觉研究的基础库,
主要
提供以下功能:图像处理、图像和标注结果可视化、图像转换、多种CNN网络结构、高质量实现的常见CUDA算子。MMCV官方github
地址
:
[
https://github.com/open-mmlab/mmcv
](
https://github.com/open-mmlab/mmcv
)
## 安装
## 安装
...
@@ -13,12 +13,11 @@ pip install mmcv* (下载的mmcv的whl包)
...
@@ -13,12 +13,11 @@ pip install mmcv* (下载的mmcv的whl包)
### 使用源码编译方式安装
### 使用源码编译方式安装
#### 编译环境准备
#### 编译环境准备
有下面2中
环境准备方式:
提供2种
环境准备方式:
1、基于光源pytorch镜像环境
。
镜像下载地址:
[
https://sourcefind.cn/#/image/dcu/pytorch
](
https://sourcefind.cn/#/image/dcu/pytorch
)
根据pyt
h
orch、python、dtk及系统下载对应的镜像版本。
1、基于光源pytorch
基础
镜像环境
:
镜像下载地址:
[
https://sourcefind.cn/#/image/dcu/pytorch
](
https://sourcefind.cn/#/image/dcu/pytorch
)
根据pytorch、python、dtk及系统下载对应的镜像版本。
2、基于自己的pyhon环境安装。安装pytorch,pytorch whl包下载目录:
[
https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04
](
https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04
)
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包。安装命令如下:
根据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
...
@@ -29,7 +28,7 @@ pip install setuptools=59.5.0 wheel
...
@@ -29,7 +28,7 @@ pip install setuptools=59.5.0 wheel
```
shell
```
shell
git clone https://developer.hpccube.com/codes/aicomponent/mmcv
# 根据编译需要切换分支
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
...
@@ -40,17 +39,15 @@ MMCV_WITH_OPS=1 ROCM_HOME=${ROCM_PATH} python3 setup.py install
...
@@ -40,17 +39,15 @@ MMCV_WITH_OPS=1 ROCM_HOME=${ROCM_PATH} python3 setup.py install
```
```
## 版本号查询
## 版本号查询
-
mmcv.
\_\_
version__
:
与官方版本同步,查询该软件的版本号,例如2.0.0;
-
python -c "import mmcv;
mmcv.
\_\_
version__
",版本号
与官方版本同步,查询该软件的版本号,例如2.0.0;
## Issue标题格式
## Known Issue
-
bug类 : [Bug] bug内容;
-
无
-
需求类: [Feature] 需求内容;
-
文档类: [Docs] 文档内容;
## Note
## Note
+
若使用
pip install
下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
+
若使用pip install下载安装过慢,可添加
pypi清华
源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
+
ROCM_PATH为dtk的路径,默认为/opt/dtk
xxx
+
ROCM_PATH为dtk的路径,默认为/opt/dtk
## 其他参考
## 其他参考
-
[
README_ORIGIN
](
README_ORIGIN.md
)
-
[
README_ORIGIN
](
README_ORIGIN.md
)
-
[
README_zh-CN
](
README_zh-CN.md
)
-
[
README_zh-CN
](
README_zh-CN.md
)
\ No newline at end of file
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