Sign inSign up

wangjing5802/ad

By wangjing5802

Updated almost 6 years ago

Image
0

173

wangjing5802/ad repository overview

Dockerfile for Anomaly Detection

Maintainer: Jing Wang

Email: [email protected]

FROM nvidia/cuda:10.1-cudnn7-devel RUN apt-get update && apt-get install -y python3 python3-dev python3-pip RUN pip3 install --upgrade pip

COPY requirements.txt /

RUN pip3 install -r /requirements.txt

install dependencies

See https://pytorch.org/ for other options if you use a different version of CUDA

RUN pip3 install --no-cache-dir tensorboard cython RUN pip3 install --no-cache-dir torch==1.5+cu101 torchvision==0.6+cu101 -f https://download.pytorch.org/whl/torch_stable.html

RUN apt-get install -y
build-essential
cmake
git
wget
unzip
yasm
pkg-config
libswscale-dev
libtbb2
libtbb-dev
libjpeg-dev
libpng-dev
libtiff-dev
libavformat-dev
libpq-dev
ffmpeg
# libsm6 \ # libxext6 \

ENV HOME / WORKDIR $HOME ENV OPENCV_VERSION="4.1.1" RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip
&& wget -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/${OPENCV_VERSION}.zip
&& unzip opencv_contrib.zip
&& unzip ${OPENCV_VERSION}.zip
&& mkdir /opencv-${OPENCV_VERSION}/cmake_binary
&& cd /opencv-${OPENCV_VERSION}/cmake_binary
&& cmake -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib-${OPENCV_VERSION}/modules
-DBUILD_TIFF=ON
-DBUILD_opencv_java=OFF
-DWITH_CUDA=OFF
-DWITH_OPENGL=ON
-DWITH_OPENCL=ON
-DWITH_IPP=ON
-DOPENCV_ENABLE_NONFREE=ON
-DWITH_TBB=ON
-DWITH_EIGEN=ON
-DWITH_V4L=ON
-DBUILD_TESTS=OFF
-DBUILD_PERF_TESTS=OFF
-DCMAKE_BUILD_TYPE=RELEASE
-DCMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)")
-DPYTHON_EXECUTABLE=$(which python3)
-DPYTHON_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
-DPYTHON_PACKAGES_PATH=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
..
&& make -j4
&& make install
&& ldconfig
&& rm /${OPENCV_VERSION}.zip
&& rm -r /opencv-${OPENCV_VERSION}
&& rm /opencv_contrib.zip
&& rm -r /opencv_contrib-${OPENCV_VERSION}

RUN pip --no-cache-dir install
dlib

Tag summary

Content type

Image

Digest

Size

3.9 GB

Last updated

almost 6 years ago

docker pull wangjing5802/ad:memae