Skip to content

Commit

Permalink
Install opencv for darknet models (#218)
Browse files Browse the repository at this point in the history
* Install opencv for darknet models

* Install ubuntu package for opencv
  • Loading branch information
melty-chocolate authored Jul 21, 2020
1 parent 650539d commit c836984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion container/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ RUN apt-get update && \
openjdk-8-jdk-headless \
python3-dev \
gcc \
libgtk2.0-dev \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder /workspace/python/dist/*.whl /home/model-server/

RUN pip3 install --pre --no-cache-dir multi-model-server \
&& pip3 install --no-cache-dir --prefer-binary numpy scipy xlrd Pillow boto3 six requests mxnet tensorflow \
&& pip3 install --no-cache-dir --prefer-binary numpy scipy xlrd Pillow boto3 six requests mxnet tensorflow opencv-python \
&& pip3 install /home/model-server/dlr-*.whl \
&& rm -rf /root/.cache/pip

Expand Down
3 changes: 2 additions & 1 deletion container/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ RUN apt-get update && \
openjdk-8-jdk-headless \
python3-dev \
gcc \
libgtk2.0-dev \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder /workspace/python/dist/*.whl /home/model-server/

RUN pip3 install --pre --no-cache-dir multi-model-server \
&& pip3 install --no-cache-dir --prefer-binary numpy scipy xlrd Pillow boto3 six requests mxnet-cu100 tensorflow_gpu \
&& pip3 install --no-cache-dir --prefer-binary numpy scipy xlrd Pillow boto3 six requests mxnet-cu100 tensorflow_gpu opencv-python \
&& pip3 install /home/model-server/dlr-*.whl \
&& rm -rf /root/.cache/pip

Expand Down

0 comments on commit c836984

Please sign in to comment.