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
072a33bc
"...git@developer.sourcefind.cn:OpenDAS/lmdeploy.git" did not exist on "3253240a8ac3840e001017b5a7b9c5fda371f575"
Commit
072a33bc
authored
Jul 27, 2023
by
xiabo
Browse files
readme修改
parent
2763a56b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
24 deletions
+22
-24
README.md
README.md
+22
-24
No files found.
README.md
View file @
072a33bc
<div
align=
"center"
>
<center>
<img
src=
"https://raw.githubusercontent.com/open-mmlab/mmcv/master/docs/en/mmcv-logo.png"
width=
"300"
/>
# MMCV
</div>
</center>
## 简介
MMCV是计算机视觉研究的基础库,他提供了以下功能:图像处理、图像和标注结果可视化、图像转换、多种CNN网络结构、高质量实现的常见CUDA算子。MMCV官方github:
[
https://github.com/open-mmlab/mmcv
](
https://github.com/open-mmlab/mmcv
)
## 安装
## 安装
### mmcv支持
+
python3.7
+
python3.8
+
python3.9
### 使用pip安装
### 使用pip
方式
安装
mmcv whl包下载目录:
[
https://cancon.hpccube.com:65024/4/main/mmcv/dtk23.04
](
https://cancon.hpccube.com:65024/4/main/mmcv/dtk23.04
)
mmcv whl包下载目录:
[
https://cancon.hpccube.com:65024/4/main/mmcv/dtk23.04
](
https://cancon.hpccube.com:65024/4/main/mmcv/dtk23.04
)
选择对应的pytorch版本和python版本下载对应mmcv的whl包
选择对应的pytorch版本和python版本下载对应mmcv的whl包
```
shell
```
shell
pip
install
mmcv
*
(
下载的mmcv的whl包
)
pip
install
mmcv
*
(
下载的mmcv的whl包
)
```
```
### 使用源码安装
### 使用源码
编译方式
安装
#### 编译环境准备
#### 编译环境准备
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的whl包
1、基于光源pytorch镜像环境。镜像下载地址:
[
https://sourcefind.cn/#/image/dcu/pytorch
](
https://sourcefind.cn/#/image/dcu/pytorch
)
根据pythorch、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
)
根据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
```
```
#### 编译安装
#### 源码编译安装
-
代码下载
```
shell
```
shell
git clone https://developer.hpccube.com/codes/aicomponent/mmcv
# 根据编译需要切换分支
git clone https://developer.hpccube.com/codes/aicomponent/mmcv
# 根据编译需要切换分支
cd
mmcv
cd
mmcv
```
-
有下面2中源码编译方式:
```
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
```
```
## 安装包命名
例:mmcv-2.0.0+gitc7118e5.abi0.dtk2304.torch1.13-cp37-cp37m-manylinux2014_x86_64.whl
-
mmcv: 软件名称;
-
2.0.0: 软件版本号;
-
gitc7118e5: git号;
-
abi0: 对应centos和rocky多系统的标识,取值为abi0(centos7),abi1(rocky8),可使用命令行动态查询获取辅助判断(echo '#include
<string>
' | gcc -x c++ -E -dM - | fgrep _GLIBCXX_USE_CXX11_ABI);
-
dtk2304: 对应dtk大版本号,命令行动态查询取值(/opt/dtk-23.04/.info/rocm_version);
-
torch1.13: 对应构建的torch版本号,命令行动态查询取值(torch.
\_\_
version__);
-
cp37-cp37m: 对应python版本号;
-
manylinux2014_x86_64: 系统架构;
## 版本号查询
## 版本号查询
-
mmcv.
\_\_
version__:与官方版本同步,查询该软件的版本号,例如2.0.0;
-
mmcv.
\_\_
version__:与官方版本同步,查询该软件的版本号,例如2.0.0;
## Issue标题格式
-
bug类 : [Bug] bug内容;
-
需求类: [Feature] 需求内容;
-
文档类: [Docs] 文档内容;
## Note
## Note
+
若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
+
若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
+
ROCM_PATH为dtk的路径,默认为/opt/dtkxxx
+
ROCM_PATH为dtk的路径,默认为/opt/dtkxxx
...
...
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