Sign inSign up

lukezhqin/deep_sentinel

By lukezhqin

•Updated about 6 years ago

Image
0

97

lukezhqin/deep_sentinel repository overview

⁠original FROM nvcr.io/nvidia/tensorrt:19.11-py3

Tag 0.9: with nv19.11:tensorrt6-cuda10.2-cudnn7.6.5-opencv4.3.0gpu-torch1.5.1-numpy1.17-onnx1.4.1 and so on ...

Tag 0.9.1: install dlib19.20 and face_recognition1.3 from pip3

Tag 0.9.2: install ping net tools ---> could do yolov3&deep_sort&track


*# orinal FROM nvcr.io/nvidia/tensorrt:19.11-py3 *# lukezhqin/track_sentinel:1.0 FROM track_sentinel:1.0

LABEL MAINTAINER Luke.Qin [email protected]⁠ *# 4.1.1 couldn't get gpu but 4.3.0 would build with gpu cuda ENV OPENCV_VERSION='4.3.0 ' *# https://www.cnblogs.com/Mike2019/p/11888164.html--->找办法将源换成阿里云能够加速成功⁠ *# https://docs.opencv.org/4.1.1/d7/d9f/tutorial_linux_install.html⁠ *# [compiler] sudo apt-get install build-essential *# [required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev *# [optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev *# add-apt-repository "deb http://security.ubuntu.com/ubuntu⁠ xenial-security main" then sudo apt-get update---> Unable to locate package libjasper-dev # libopenblas-dev
RUN apt-get update
&& apt-get install -y --fix-missing --no-install-recommends
build-essential
pkg-config
cmake
git
libgtk2.0-dev
libavcodec-dev
libavformat-dev
libswscale-dev
python-dev
libtbb2
libtbb-dev
libjpeg-dev
libpng-dev
libtiff-dev
libpq-dev
libcanberra-gtk-module
&& apt-get -y clean all
&& apt-get autoremove
&& rm -rf /var/lib/apt/lists/

WORKDIR /

⁠---> stage tag tag_setinel:0.1

RUN echo '140.82.113.4 gist.github.com'>>/etc/hosts
&& echo '199.232.68.133 raw.githubusercontent.com'>>/etc/hosts
&& echo '199.232.68.133 raw.github.com'>>/etc/hosts

⁠---> stage tag tag_setinel:0.1.1

⁠---------

*#COPY opencv /opencv *#COPY opencv_contrib /opencv_contrib RUN git clone -b ${OPENCV_VERSION} --single-branch https://gitee.com/lukezhqin/opencv.git⁠
&& git clone -b ${OPENCV_VERSION} --single-branch https://gitee.com/lukezhqin/opencv_contrib.git⁠ *#RUN mkdir -p /opencv/sources/.cache/ippicv
*#&& mkdir -p /opencv/sources/.cache/data *#COPY c0bd78adb4156bbf552c1dfe90599607+ippicv_2019_lnx_intel64_general_20180723.tgz /opencv/sources/.cache/ippicv #COPY 7505c44ca4eb54b4ab1e4777cb96ac05+face_landmark_model.dat /opencv/sources/.cache/data COPY opencv_contrib_missing/ /opencv_contrib/modules/xfeatures2d/src/

RUN pip3 install --upgrade pip RUN pip3 --no-cache-dir install scipy pyyaml easydict -i http://mirrors.aliyun.com/pypi/simple/⁠ --trusted-host mirrors.aliyun.com

RUN mkdir /opencv/build
&& cd /opencv/build
&& cmake -D BUILD_TIFF=ON
-D BUILD_OPENCV_JAVA=OFF
-D OPENCV_ENABLE_NONFREE=ON
-D WITH_OPENBLAS=ON
-D WITH_CUDA=ON
-D WITH_OPENGL=ON
-D WITH_OPENCL=ON
-D WITH_IPP=ON
-D WITH_TBB=ON
-D WITH_EIGEN=ON
-D WITH_V4L=ON
-D BUILD_TESTS=OFF
-D BUILD_PERF_TESTS=OFF
-D CMAKE_BUILD_TYPE=RELEASE
-D OPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules
-D CMAKE_INSTALL_PREFIX=/usr/local/
-D PYTHON_EXECUTABLE=$(which python3.6)
-D PYTHON_INCLUDE_DIR=$(python3.6 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
-D PYTHON_PACKAGES_PATH=$(python3.6 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
..
&& make install
&& cd /
&& rm -rf /opencv
&& rm -rf /opencv_contrib

*# the following would not be need *#RUN ln -s
*# /usr/local/python/cv2/python-3.6/cv2.cpython-36m-x86_64-linux-gnu.so
*# /usr/local/lib/python3.6/site-packages/cv2.so

#RUN bin/bash

⁠---> stage tag deep_setinel:0.9

⁠---------

*# install dlib and face_recognition *#libcanberra-gtk-module already installed in the first place RUN pip3 --no-cache-dir install dlib face_recognition -i http://mirrors.aliyun.com/pypi/simple/⁠ --trusted-host mirrors.aliyun.com

⁠---> stage tag deep_setinel:0.9.1

⁠---------

RUN apt-get update
&& apt-get install -y --fix-missing --no-install-recommends
iputils-ping
net-tools
&& apt-get -y clean all
&& apt-get autoremove
&& rm -rf /var/lib/apt/lists/*

⁠until 0.9.2: pip freeze

appdirs==1.4.3 click==7.1.2 decorator==4.4.1 dlib==19.20.0 easydict==1.9 face-recognition==1.3.0 face-recognition-models==0.3.0 future==0.18.2 Mako==1.1.0 MarkupSafe==1.1.1 numpy==1.17.4 onnx==1.4.1 Pillow==6.2.1 protobuf==3.12.2 pycuda==2019.1.2 pytools==2019.1.1 PyYAML==5.3.1 scipy==1.5.2 six==1.13.0 tensorrt==6.0.1.8 torch==1.5.1 torchvision==0.6.1 typing==3.7.4.3 typing-extensions==3.7.4.2 wget==3.2

⁠---> stage tag deep_setinel:0.9.2**************************

Tag summary

Content type

Image

Digest

Size

3.5 GB

Last updated

about 6 years ago

docker pull lukezhqin/deep_sentinel:0.9.2