Commit d56e267e authored by Ilija Radosavovic's avatar Ilija Radosavovic Committed by Facebook Github Bot

Use a requirements file to specify python dependencies

Reviewed By: rbgirshick

Differential Revision: D8117250

fbshipit-source-id: 1cd6e033c3ed3057afeeb92ed86a20d807549b5a
parent a6a79533
......@@ -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):
```
......@@ -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:
```
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment