Skip to content

Instantly share code, notes, and snippets.

@skeeph
Created November 20, 2016 06:51
Show Gist options
  • Save skeeph/4373eff251fe4125f31629561c462ef9 to your computer and use it in GitHub Desktop.
Save skeeph/4373eff251fe4125f31629561c462ef9 to your computer and use it in GitHub Desktop.
FROM nvidia/cuda:8.0-devel-ubuntu16.04
RUN apt-get update && apt-get install --no-install-recommends -y git libprotobuf-dev\
libleveldb-dev libsnappy-dev libopencv-dev\
libhdf5-serial-dev protobuf-compiler libboost-all-dev wget \
libgflags-dev libgoogle-glog-dev liblmdb-dev libatlas-base-dev
RUN apt-get -y install ca-certificates python-pip python-opencv
RUN pip install --upgrade pip easydict numpy requests
RUN cd /opt && ls && \
git clone --recursive "username@bitbucket.org/org/repo.git"
COPY Makefile.config /opt/localization/py-faster-rcnn/caffe-fast-rcnn
RUN pip install -r /opt/localization/py-faster-rcnn/caffe-fast-rcnn/python/requirements.txt && \
pip install -r /opt/localization/requirements.txt
RUN cd /opt/localization/py-faster-rcnn/caffe-fast-rcnn && make -j48 && make -j48 pycaffe
RUN cd /opt/localization/py-faster-rcnn/lib && make -j48
COPY vgg16_faster_rcnn_iter_450000.caffemodel /opt/localization
COPY test.prototxt /opt/localization
WORKDIR /opt/localization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment