Skip to content
Snippets Groups Projects
Unverified Commit 3809e5e8 authored by Jerry Jiarui XU's avatar Jerry Jiarui XU Committed by GitHub
Browse files

update API install docs (#2929)

parent 63e2d652
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ install:
- pip install Pillow==6.2.2 # remove this line when torchvision>=0.5
- pip install torch==${TORCH} torchvision==${TORCHVISION}
- pip install mmcv-nightly
- pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=PythonAPI"
- pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools"
- pip install -r requirements.txt
before_script:
......
......@@ -11,6 +11,11 @@
```
## Common Setting
* Please follow [install guide](../../docs/install.md#install-mmdetection) to install open-mmlab forked cocoapi first.
* Run following scripts to install our forked lvis-api.
```
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=lvis"
```
* All experiments use oversample strategy [here](../../docs/tutorials/new_dataset.md#class-balanced-dataset) with oversample threshold `1e-3`.
* The size of LVIS v0.5 is half of COCO, so schedule `2x` in LVIS is roughly the same iterations as `1x` in COCO.
......
......@@ -58,7 +58,7 @@ for better compatibility with our repo.)
```shell
pip install -r requirements/build.txt
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=PythonAPI"
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools"
pip install -v -e . # or "python setup.py develop"
```
......
......@@ -268,8 +268,8 @@ class LVISDataset(CocoDataset):
try:
from lvis import LVIS
except ImportError:
raise ImportError('Please follow install.md to '
'install open-mmlab forked cocoapi first.')
raise ImportError('Please follow config/lvis/README.md to '
'install open-mmlab forked lvis first.')
self.coco = LVIS(ann_file)
assert not self.custom_classes, 'LVIS custom classes is not supported'
self.cat_ids = self.coco.get_cat_ids()
......@@ -310,8 +310,8 @@ class LVISDataset(CocoDataset):
try:
from lvis import LVISResults, LVISEval
except ImportError:
raise ImportError('Please follow install.md to '
'install open-mmlab forked cocoapi first.')
raise ImportError('Please follow config/lvis/README.md to '
'install open-mmlab forked lvis first.')
assert isinstance(results, list), 'results must be a list'
assert len(results) == len(self), (
'The length of results is not equal to the dataset len: {} != {}'.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment