File tree 4 files changed +30
-9
lines changed
4 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 60
60
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
61
61
python -c 'import mmcv; print(mmcv.__version__)'
62
62
- name : Install unittest dependencies
63
- run : pip install -r requirements/tests.txt -r requirements/optional.txt
63
+ run : |
64
+ pip install -r requirements/tests.txt -r requirements/optional.txt
65
+ pip install git+https://github.com/cocodataset/panopticapi.git
64
66
- name : Build and install
65
67
run : rm -rf .eggs && pip install -e .
66
68
- name : Run unittests and generate coverage report
@@ -140,6 +142,7 @@ jobs:
140
142
run : |
141
143
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/${{matrix.torch_version}}/index.html
142
144
pip install -r requirements.txt
145
+ pip install git+https://github.com/cocodataset/panopticapi.git
143
146
python -c 'import mmcv; print(mmcv.__version__)'
144
147
- name : Build and install
145
148
run : |
Original file line number Diff line number Diff line change @@ -116,6 +116,17 @@ Or you can still install MMDetection manually:
116
116
pip install -v -e . # or "python setup.py develop"
117
117
` ` `
118
118
119
+ 3. Install extra dependencies for Instaboost, Panoptic Segmentation, or LVIS dataset
120
+
121
+ ` ` ` shell
122
+ # for instaboost
123
+ pip install instaboostfast
124
+ # for panoptic segmentation
125
+ pip install git+https://github.com/cocodataset/panopticapi.git
126
+ # for LVIS dataset
127
+ pip install git+https://github.com/lvis-dataset/lvis-api.git
128
+ ` ` `
129
+
119
130
** Note:**
120
131
121
132
a. When specifying ` -e` or ` develop` , MMDetection is installed on dev mode
Original file line number Diff line number Diff line change @@ -105,24 +105,32 @@ MIM 能够自动地安装 OpenMMLab 的项目以及对应的依赖包。
105
105
pip install mmcv-full
106
106
` ` `
107
107
108
- 2. 将 MMDetection 仓库克隆至本地:
108
+ 2. 安装 MMDetection:
109
+
110
+ 你可以直接通过如下命令从 pip 安装使用 mmdetection:
109
111
110
112
` ` ` shell
111
- git clone https://github.com/open-mmlab/mmdetection.git
112
- cd mmdetection
113
+ pip install mmdet
113
114
` ` `
114
115
115
- 3. 首先安装需要的依赖包,然后安装 MMDetection:
116
+ 或者从 git 仓库编译源码
116
117
117
118
` ` ` shell
119
+ git clone https://github.com/open-mmlab/mmdetection.git
120
+ cd mmdetection
118
121
pip install -r requirements/build.txt
119
- pip install -v -e . # 或者使用 "python setup.py develop"
122
+ pip install -v -e . # or "python setup.py develop"
120
123
` ` `
121
124
122
- 或者,可以使用更简单的命令安装 MMDetection:
125
+ 3. 安装额外的依赖以使用 Instaboost, 全景分割, 或者 LVIS 数据集
123
126
124
127
` ` ` shell
125
- pip install mmdet
128
+ # 安装 instaboost 依赖
129
+ pip install instaboostfast
130
+ # 安装全景分割依赖
131
+ pip install git+https://github.com/cocodataset/panopticapi.git
132
+ # 安装 LVIS 数据集依赖
133
+ pip install git+https://github.com/lvis-dataset/lvis-api.git
126
134
` ` `
127
135
128
136
** 注意:**
Original file line number Diff line number Diff line change 1
1
matplotlib
2
2
numpy
3
- panopticapi @ git+https://github.com/cocodataset/panopticapi.git
4
3
pycocotools; platform_system == "Linux"
5
4
pycocotools-windows; platform_system == "Windows"
6
5
six
You can’t perform that action at this time.
0 commit comments