Skip to content

Commit

Permalink
Update installation procedure.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiong-jie-y committed Jun 3, 2021
1 parent 0c86ee6 commit 1fa535f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f htt
pip install mmcv-full==1.3.5 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html
pip install git+https://github.com/open-mmlab/mmdetection.git@v2.13.0
git clone git@github.com:xiong-jie-y/ozeu.git
cd ozeu
pip install -e .
pip install -e .
```

## Usage
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _parse_requirements(path):
from subprocess import getoutput

class PostInstall(install):
pkgs = ' git+https://github.com/open-mmlab/mmdetection.git#v2.13.0'
pkgs = ' git+https://github.com/open-mmlab/mmdetection.git@v2.13.0'
def run(self):
install.run(self)
print(getoutput('pip install'+self.pkgs))
Expand All @@ -27,5 +27,8 @@ def run(self):
version=__version__,
packages=setuptools.find_packages(),
install_requires=requirements,
cmdclass={'install': PostInstall}
cmdclass={'install': PostInstall},
dependency_links=[
'https://github.com/open-mmlab/mmdetection.git',
],
)

0 comments on commit 1fa535f

Please sign in to comment.