Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Use a requirements file to specify python dependencies
Browse files Browse the repository at this point in the history
Reviewed By: rbgirshick

Differential Revision: D8117250

fbshipit-source-id: 1cd6e033c3ed3057afeeb92ed86a20d807549b5a
  • Loading branch information
ir413 authored and facebook-github-bot committed May 24, 2018
1 parent a6a7953 commit d56e267
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
12 changes: 6 additions & 6 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ If the `caffe2` Python package is not found, you likely need to adjust your `PYT

## Other Dependencies

Install Python dependencies:

```
pip install numpy>=1.13 pyyaml>=3.12 matplotlib opencv-python>=3.2 setuptools Cython mock scipy
```

Install the [COCO API](https://github.com/cocodataset/cocoapi):

```
Expand All @@ -63,6 +57,12 @@ Clone the Detectron repository:
git clone https://github.com/facebookresearch/detectron $DETECTRON
```

Install Python dependencies:

```
pip install -r $DETECTRON/requirements.txt
```

Set up Python modules:

```
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ ENV Caffe2_DIR /usr/local/caffe2_build
ENV PYTHONPATH /usr/local/caffe2_build:${PYTHONPATH}
ENV LD_LIBRARY_PATH /usr/local/caffe2_build/lib:${LD_LIBRARY_PATH}

# Clone the Detectron repository
RUN git clone https://github.com/facebookresearch/detectron /detectron

# Install Python dependencies
RUN pip install numpy>=1.13 pyyaml>=3.12 matplotlib opencv-python>=3.2 setuptools Cython mock scipy
RUN pip install -r /detectron/requirements.txt

# Install the COCO API
RUN git clone https://github.com/cocodataset/cocoapi.git /cocoapi
WORKDIR /cocoapi/PythonAPI
RUN make install

# Clone the Detectron repository
RUN git clone https://github.com/facebookresearch/detectron /detectron

# Go to Detectron root
WORKDIR /detectron

Expand Down
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
numpy>=1.13
pyyaml>=3.12
matplotlib
opencv-python>=3.2
setuptools
Cython
mock
scipy

0 comments on commit d56e267

Please sign in to comment.