Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ICV-mmengine_basecode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Schiffel
ICV-mmengine_basecode
Commits
10330cde
Unverified
Commit
10330cde
authored
2 years ago
by
Zaida Zhou
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Docs] Add installation docs (#406)
* Add installation docs * fix typo
parent
d6ad01a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/zh_cn/get_started/installation.md
+75
-0
75 additions, 0 deletions
docs/zh_cn/get_started/installation.md
docs/zh_cn/index.rst
+6
-0
6 additions, 0 deletions
docs/zh_cn/index.rst
with
81 additions
and
0 deletions
docs/zh_cn/get_started/installation.md
0 → 100644
+
75
−
0
View file @
10330cde
## 安装
### 环境依赖
-
Python 3.6+
-
PyTorch 1.6+
-
CUDA 9.2+
-
GCC 5.4+
### 准备环境
1.
使用 conda 新建虚拟环境,并进入该虚拟环境;
```
bash
conda create
-n
open-mmlab
python
=
3.7
-y
conda activate open-mmlab
```
2.
安装 PyTorch
在安装 MMEngine 之前,请确保 PyTorch 已经成功安装在环境中,可以参考
[
PyTorch 官方安装文档
](
https://pytorch.org/get-started/locally/#start-locally
)
。使用以下命令验证 PyTorch 是否安装
```
bash
python
-c
'import torch;print(torch.__version__)'
```
### 安装 MMEngine
#### 使用 mim 安装
[
mim
](
https://github.com/open-mmlab/mim
)
是 OpenMMLab 项目的包管理工具,使用它可以很方便地安装 OpenMMLab 项目。
```
bash
pip
install
-U
openmim
mim
install
mmengine
```
#### 使用 pip 安装
```
bash
pip
install
mmengine
```
#### 使用 docker 镜像
1.
构建镜像
```
bash
docker build
-t
mmengine https://github.com/open-mmlab/mmengine.git#main:docker/release
```
更多构建方式请参考
[
mmengine/docker
](
https://github.com/open-mmlab/mmengine/tree/main/docker
)
。
2.
运行镜像
```
bash
docker run
--gpus
all
--shm-size
=
8g
-it
mmengine
```
#### 源码安装
```
bash
# 如果克隆代码仓库的速度过慢,可以从 https://gitee.com/open-mmlab/mmengine.git 克隆
git clone https://github.com/open-mmlab/mmengine.git
cd
mmengine
pip
install
-e
.
-v
```
### 验证安装
为了验证是否正确安装了 MMEngine 和所需的环境,我们可以运行以下命令
```
bash
python
-c
'import mmengine;print(mmengine.__version__)'
```
This diff is collapsed.
Click to expand it.
docs/zh_cn/index.rst
+
6
−
0
View file @
10330cde
...
...
@@ -2,6 +2,12 @@
=========================================
您可以在页面左下角切换中英文文档。
.. toctree::
:maxdepth: 1
:caption: 开始你的第一步
get_started/installation.md
.. toctree::
:maxdepth: 1
:caption: 教程
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment