Skip to content

Commit 604bfe9

Browse files
authored
[Fix]: fix panoptic dependency issue when publishing to pypi (#5781)
* fix panoptic dependency issue when publish to pypi * resolve comments
1 parent 90e0ec7 commit 604bfe9

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

Diff for: .github/workflows/build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ jobs:
6060
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
6161
python -c 'import mmcv; print(mmcv.__version__)'
6262
- 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
6466
- name: Build and install
6567
run: rm -rf .eggs && pip install -e .
6668
- name: Run unittests and generate coverage report
@@ -140,6 +142,7 @@ jobs:
140142
run: |
141143
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/${{matrix.torch_version}}/index.html
142144
pip install -r requirements.txt
145+
pip install git+https://github.com/cocodataset/panopticapi.git
143146
python -c 'import mmcv; print(mmcv.__version__)'
144147
- name: Build and install
145148
run: |

Diff for: docs/get_started.md

+11
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,17 @@ Or you can still install MMDetection manually:
116116
pip install -v -e . # or "python setup.py develop"
117117
```
118118

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+
119130
**Note:**
120131

121132
a. When specifying `-e` or `develop`, MMDetection is installed on dev mode

Diff for: docs_zh-CN/get_started.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -105,24 +105,32 @@ MIM 能够自动地安装 OpenMMLab 的项目以及对应的依赖包。
105105
pip install mmcv-full
106106
```
107107

108-
2. 将 MMDetection 仓库克隆至本地:
108+
2. 安装 MMDetection:
109+
110+
你可以直接通过如下命令从 pip 安装使用 mmdetection:
109111

110112
```shell
111-
git clone https://github.com/open-mmlab/mmdetection.git
112-
cd mmdetection
113+
pip install mmdet
113114
```
114115

115-
3. 首先安装需要的依赖包,然后安装 MMDetection:
116+
或者从 git 仓库编译源码
116117

117118
```shell
119+
git clone https://github.com/open-mmlab/mmdetection.git
120+
cd mmdetection
118121
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"
120123
```
121124

122-
或者,可以使用更简单的命令安装 MMDetection:
125+
3. 安装额外的依赖以使用 Instaboost, 全景分割, 或者 LVIS 数据集
123126

124127
```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
126134
```
127135

128136
**注意:**

Diff for: requirements/runtime.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
matplotlib
22
numpy
3-
panopticapi @ git+https://github.com/cocodataset/panopticapi.git
43
pycocotools; platform_system == "Linux"
54
pycocotools-windows; platform_system == "Windows"
65
six

0 commit comments

Comments
 (0)