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

Update setup.py (#3293)

* Update setup.py

* update ci
parent af33f11c
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,6 @@ jobs: ...@@ -52,7 +52,6 @@ jobs:
run: | run: |
pip install mmcv-full==latest+torch${{matrix.torch}}+cu101 -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html pip install mmcv-full==latest+torch${{matrix.torch}}+cu101 -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html
pip install -r requirements.txt pip install -r requirements.txt
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools"
- name: Lint with flake8 - name: Lint with flake8
run: flake8 . run: flake8 .
- name: Lint with isort - name: Lint with isort
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
``` ```
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=lvis" pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=lvis"
``` ```
or
```
pip install -r requirements/optional.txt
```
* All experiments use oversample strategy [here](../../docs/tutorials/new_dataset.md#class-balanced-dataset) with oversample threshold `1e-3`. * 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. * The size of LVIS v0.5 is half of COCO, so schedule `2x` in LVIS is roughly the same iterations as `1x` in COCO.
......
...@@ -74,7 +74,6 @@ for better compatibility with our repo.) ...@@ -74,7 +74,6 @@ for better compatibility with our repo.)
```shell ```shell
pip install -r requirements/build.txt pip install -r requirements/build.txt
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools"
pip install -v -e . # or "python setup.py develop" pip install -v -e . # or "python setup.py develop"
``` ```
...@@ -152,7 +151,6 @@ pip install mmcv-full ...@@ -152,7 +151,6 @@ pip install mmcv-full
git clone https://github.com/open-mmlab/mmdetection.git git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection cd mmdetection
pip install -r requirements/build.txt pip install -r requirements/build.txt
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools"
pip install -v -e . pip install -v -e .
``` ```
......
albumentations>=0.3.2 albumentations>=0.3.2
cityscapesscripts cityscapesscripts
imagecorruptions imagecorruptions
lvis@git+https://github.com/open-mmlab/cocoapi.git#subdirectory=lvis
...@@ -6,3 +6,4 @@ six ...@@ -6,3 +6,4 @@ six
terminaltables terminaltables
torch>=1.3 torch>=1.3
torchvision torchvision
pycocotools@git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools
...@@ -142,6 +142,8 @@ def parse_requirements(fname='requirements.txt', with_version=True): ...@@ -142,6 +142,8 @@ def parse_requirements(fname='requirements.txt', with_version=True):
info = {'line': line} info = {'line': line}
if line.startswith('-e '): if line.startswith('-e '):
info['package'] = line.split('#egg=')[1] info['package'] = line.split('#egg=')[1]
elif '@git+' in line:
info['package'] = line
else: else:
# Remove versioning from the package # Remove versioning from the package
pat = '(' + '|'.join(['>=', '==', '>']) + ')' pat = '(' + '|'.join(['>=', '==', '>']) + ')'
......
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