Skip to content

Instantly share code, notes, and snippets.

@ahmadshah
Last active October 10, 2017 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadshah/69a14ac71e0626240c4bd3ef60b45c81 to your computer and use it in GitHub Desktop.
Save ahmadshah/69a14ac71e0626240c4bd3ef60b45c81 to your computer and use it in GitHub Desktop.
Darknet, OpenCV and Python3 Docker
FROM loretoparisi/darknet:latest
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y build-essential \
libssl-dev \
libffi-dev \
python3-dev \
python3-pip \
libopencv-dev \
python-opencv
RUN pip3 install numpy
WORKDIR /root/darknet
RUN sed -i'' -- 's/OPENCV=0/OPENCV=1/g' Makefile
RUN make
ENTRYPOINT []
CMD ["/bin/bash"]
@ahmadshah
Copy link
Author

RUN docker built -t darknet .

RUN cd darknet && ./darknet detector test cfg/coco.data cfg/yolo.cfg /root/yolo.weights data/dog.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment