forked from open-mmlab/mmdetection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:open-mmlab/mmdetection
Conflicts: tools/train.py
- Loading branch information
Showing
64 changed files
with
3,476 additions
and
514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,3 +107,5 @@ venv.bak/ | |
mmdet/ops/nms/*.cpp | ||
mmdet/version.py | ||
data | ||
.vscode | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ install: | |
- pip install flake8 | ||
|
||
python: | ||
- "2.7" | ||
- "3.5" | ||
- "3.6" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
## Installation | ||
|
||
### Requirements | ||
|
||
- Linux (tested on Ubuntu 16.04 and CentOS 7.2) | ||
- Python 3.4+ | ||
- PyTorch 0.4.1 | ||
- Cython | ||
- [mmcv](https://github.com/open-mmlab/mmcv) | ||
|
||
### Install mmdetection | ||
|
||
a. Install PyTorch 0.4.1 and torchvision following the [official instructions](https://pytorch.org/). | ||
|
||
b. Clone the mmdetection repository. | ||
|
||
```shell | ||
git clone https://github.com/open-mmlab/mmdetection.git | ||
``` | ||
|
||
c. Compile cuda extensions. | ||
|
||
```shell | ||
cd mmdetection | ||
pip install cython # or "conda install cython" if you prefer conda | ||
./compile.sh # or "PYTHON=python3 ./compile.sh" if you use system python3 without virtual environments | ||
``` | ||
|
||
d. Install mmdetection (other dependencies will be installed automatically). | ||
|
||
```shell | ||
python(3) setup.py install # add --user if you want to install it locally | ||
# or "pip install ." | ||
``` | ||
|
||
Note: You need to run the last step each time you pull updates from github. | ||
The git commit id will be written to the version number and also saved in trained models. | ||
|
||
### Prepare COCO dataset. | ||
|
||
It is recommended to symlink the dataset root to `$MMDETECTION/data`. | ||
|
||
``` | ||
mmdetection | ||
├── mmdet | ||
├── tools | ||
├── configs | ||
├── data | ||
│ ├── coco | ||
│ │ ├── annotations | ||
│ │ ├── train2017 | ||
│ │ ├── val2017 | ||
│ │ ├── test2017 | ||
│ ├── VOCdevkit | ||
│ │ ├── VOC2007 | ||
│ │ ├── VOC2012 | ||
``` | ||
|
||
### Scripts | ||
Just for reference, [Here](https://gist.github.com/hellock/bf23cd7348c727d69d48682cb6909047) is | ||
a script for setting up mmdetection with conda. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.