mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-01 10:29:09 +00:00
fixed docker submodule issues, formatted Dockerfile
This commit is contained in:
parent
deb742ee8d
commit
c73edd9001
27
Dockerfile
27
Dockerfile
@ -2,6 +2,7 @@ FROM ubuntu:19.10
|
|||||||
#FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
|
#FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
|
||||||
MAINTAINER Danielle Douglas <ddouglas87@gmail.com>
|
MAINTAINER Danielle Douglas <ddouglas87@gmail.com>
|
||||||
MAINTAINER Lhanjian <lhjay1@foxmail.com>
|
MAINTAINER Lhanjian <lhjay1@foxmail.com>
|
||||||
|
MAINTAINER K4YT3X <k4yt3x@k4yt3x.com>
|
||||||
|
|
||||||
# Don't ask questions during image setup.
|
# Don't ask questions during image setup.
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
@ -21,7 +22,17 @@ RUN apt-get update && apt-get install -y apt-utils &&\
|
|||||||
## Install Video2X ##
|
## Install Video2X ##
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
RUN apt-fast install -y --no-install-recommends git-core python3-pip python3-setuptools python3-wheel python3-psutil ffmpeg gcc g++ libc6-dev python3-dev libmagic-dev libmagic1 python3.8 nvidia-driver-440 nvidia-cuda-toolkit gnupg2 curl ca-certificates pkg-config autoconf libx264-dev libx265-dev libnuma-dev libvpx-dev libfdk-aac-dev libmp3lame-dev libopus-dev libass-dev libfreetype6-dev libgnutls28-dev libsdl2-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev texinfo wget yasm zlib1g-dev libass-dev libfreetype6-dev libsdl2-dev p11-kit libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget zlib1g-dev libchromaprint-dev frei0r-plugins-dev gnutls-dev ladspa-sdk libcaca-dev libcdio-paranoia-dev libcodec2-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libgme-dev libgsm1-dev libjack-dev libmodplug-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libopenjp2-7-dev libopenmpt-dev libopus-dev libpulse-dev librsvg2-dev librubberband-dev librtmp-dev libshine-dev libsmbclient-dev libsnappy-dev libsoxr-dev libspeex-dev libssh-dev libtesseract-dev libtheora-dev libtwolame-dev libv4l-dev libvo-amrwbenc-dev libvorbis-dev libvpx-dev libwavpack-dev libwebp-dev libx264-dev libx265-dev libxvidcore-dev libxml2-dev libzmq3-dev libzvbi-dev liblilv-dev libopenal-dev opencl-dev libjack-dev libbluray-dev libfdk-aac-dev libmysofa-dev
|
RUN apt-fast install -y --no-install-recommends git-core python3-pip python3-setuptools python3-wheel python3-psutil ffmpeg gcc g++ \
|
||||||
|
libc6-dev python3-dev libmagic-dev libmagic1 python3.8 nvidia-driver-440 nvidia-cuda-toolkit gnupg2 curl ca-certificates pkg-config \
|
||||||
|
autoconf libx264-dev libx265-dev libnuma-dev libvpx-dev libfdk-aac-dev libmp3lame-dev libopus-dev libass-dev libfreetype6-dev libgnutls28-dev \
|
||||||
|
libsdl2-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev texinfo wget yasm zlib1g-dev \
|
||||||
|
libass-dev libfreetype6-dev libsdl2-dev p11-kit libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev \
|
||||||
|
pkg-config texinfo wget zlib1g-dev libchromaprint-dev frei0r-plugins-dev gnutls-dev ladspa-sdk libcaca-dev libcdio-paranoia-dev libcodec2-dev \
|
||||||
|
libfontconfig1-dev libfreetype6-dev libfribidi-dev libgme-dev libgsm1-dev libjack-dev libmodplug-dev libmp3lame-dev libopencore-amrnb-dev \
|
||||||
|
libopencore-amrwb-dev libopenjp2-7-dev libopenmpt-dev libopus-dev libpulse-dev librsvg2-dev librubberband-dev librtmp-dev libshine-dev \
|
||||||
|
libsmbclient-dev libsnappy-dev libsoxr-dev libspeex-dev libssh-dev libtesseract-dev libtheora-dev libtwolame-dev libv4l-dev libvo-amrwbenc-dev \
|
||||||
|
libvorbis-dev libvpx-dev libwavpack-dev libwebp-dev libx264-dev libx265-dev libxvidcore-dev libxml2-dev libzmq3-dev libzvbi-dev liblilv-dev \
|
||||||
|
libopenal-dev opencl-dev libjack-dev libbluray-dev libfdk-aac-dev libmysofa-dev
|
||||||
|
|
||||||
RUN curl -vfsSLO https://www.nasm.us/pub/nasm/releasebuilds/$NASM_VERSION/nasm-$NASM_VERSION.tar.bz2 \
|
RUN curl -vfsSLO https://www.nasm.us/pub/nasm/releasebuilds/$NASM_VERSION/nasm-$NASM_VERSION.tar.bz2 \
|
||||||
&& tar -xjf nasm-$NASM_VERSION.tar.bz2 \
|
&& tar -xjf nasm-$NASM_VERSION.tar.bz2 \
|
||||||
@ -31,7 +42,7 @@ RUN curl -vfsSLO https://www.nasm.us/pub/nasm/releasebuilds/$NASM_VERSION/nasm-$
|
|||||||
&& make -j$(nproc) \
|
&& make -j$(nproc) \
|
||||||
&& make install
|
&& make install
|
||||||
|
|
||||||
RUN git clone -b n$NVCODEC_VERSION --depth 1 https://git.videolan.org/git/ffmpeg/nv-codec-headers \
|
RUN git clone --recurse-submodules -b n$NVCODEC_VERSION --depth 1 https://git.videolan.org/git/ffmpeg/nv-codec-headers \
|
||||||
&& cd nv-codec-headers \
|
&& cd nv-codec-headers \
|
||||||
&& make install
|
&& make install
|
||||||
|
|
||||||
@ -70,7 +81,7 @@ RUN echo "deb https://developer.download.nvidia.com/compute/machine-learning/rep
|
|||||||
# Install Video2X
|
# Install Video2X
|
||||||
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
|
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
|
||||||
RUN cd / && python3.8 -m pip install --upgrade pip &&\
|
RUN cd / && python3.8 -m pip install --upgrade pip &&\
|
||||||
git clone --progress https://github.com/k4yt3x/video2x.git --depth=1 &&\
|
git clone --recurse-submodules --progress https://github.com/k4yt3x/video2x.git --depth=1 &&\
|
||||||
python3.8 -m pip install avalon_framework colorama python-magic patool psutil pyqt5 pyunpack pyyaml requests tqdm
|
python3.8 -m pip install avalon_framework colorama python-magic patool psutil pyqt5 pyunpack pyyaml requests tqdm
|
||||||
|
|
||||||
# eg: docker build -t video2x . --build-arg driver=waifu2x_ncnn_vulkan
|
# eg: docker build -t video2x . --build-arg driver=waifu2x_ncnn_vulkan
|
||||||
@ -94,9 +105,9 @@ RUN if [ "$driver" = "all" ] || [ "$driver" = "waifu2x_caffe" ] ; then \
|
|||||||
fi
|
fi
|
||||||
# build waifu2x-caffe && install caffe
|
# build waifu2x-caffe && install caffe
|
||||||
RUN if [ "$driver" = "all" ] || [ "$driver" = "waifu2x_caffe" ] ; then \
|
RUN if [ "$driver" = "all" ] || [ "$driver" = "waifu2x_caffe" ] ; then \
|
||||||
git clone --depth=1 --progress --recurse-submodules https://github.com/nagadomi/waifu2x-caffe-ubuntu.git &&\
|
git clone --recurse-submodules --depth=1 --progress --recurse-submodules https://github.com/nagadomi/waifu2x-caffe-ubuntu.git &&\
|
||||||
cd waifu2x-caffe-ubuntu &&\
|
cd waifu2x-caffe-ubuntu &&\
|
||||||
git clone --progress --depth=1 https://github.com/nagadomi/caffe.git;\
|
git clone --recurse-submodules --progress --depth=1 https://github.com/nagadomi/caffe.git;\
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUN if [ "$driver" = "all" ] || [ "$driver" = "waifu2x_caffe" ] ; then \
|
RUN if [ "$driver" = "all" ] || [ "$driver" = "waifu2x_caffe" ] ; then \
|
||||||
@ -122,7 +133,7 @@ fi
|
|||||||
|
|
||||||
RUN if [ "$driver" = "all" ] || [ "$driver" = "waifu2x_ncnn_vulkan" ] ; then \
|
RUN if [ "$driver" = "all" ] || [ "$driver" = "waifu2x_ncnn_vulkan" ] ; then \
|
||||||
apt-fast install -y --no-install-recommends software-properties-common build-essential cmake libvulkan-dev glslang-tools libprotobuf-dev protobuf-compiler &&\
|
apt-fast install -y --no-install-recommends software-properties-common build-essential cmake libvulkan-dev glslang-tools libprotobuf-dev protobuf-compiler &&\
|
||||||
git clone --depth=1 --progress https://github.com/Tencent/ncnn.git &&\
|
git clone --recurse-submodules --depth=1 --progress https://github.com/Tencent/ncnn.git &&\
|
||||||
cd ncnn &&\
|
cd ncnn &&\
|
||||||
mkdir -p build &&\
|
mkdir -p build &&\
|
||||||
cd build &&\
|
cd build &&\
|
||||||
@ -131,7 +142,7 @@ RUN if [ "$driver" = "all" ] || [ "$driver" = "waifu2x_ncnn_vulkan" ] ; then \
|
|||||||
rm -rf ../../ncnn &&\
|
rm -rf ../../ncnn &&\
|
||||||
cd / &&\
|
cd / &&\
|
||||||
# Compile waifu2x-ncnn-vulkan
|
# Compile waifu2x-ncnn-vulkan
|
||||||
git clone --depth=1 --progress https://github.com/nihui/waifu2x-ncnn-vulkan.git &&\
|
git clone --recurse-submodules --depth=1 --progress https://github.com/nihui/waifu2x-ncnn-vulkan.git &&\
|
||||||
cd waifu2x-ncnn-vulkan &&\
|
cd waifu2x-ncnn-vulkan &&\
|
||||||
mkdir -p build &&\
|
mkdir -p build &&\
|
||||||
cd build &&\
|
cd build &&\
|
||||||
@ -151,7 +162,7 @@ then \
|
|||||||
# Prerequisits for waifu2x-converter-cpp
|
# Prerequisits for waifu2x-converter-cpp
|
||||||
apt-fast install -y --no-install-recommends build-essential cmake libopencv-dev ocl-icd-opencl-dev &&\
|
apt-fast install -y --no-install-recommends build-essential cmake libopencv-dev ocl-icd-opencl-dev &&\
|
||||||
# Compile & Install
|
# Compile & Install
|
||||||
git clone --depth=1 --progress https://github.com/DeadSix27/waifu2x-converter-cpp &&\
|
git clone --recurse-submodules --depth=1 --progress https://github.com/DeadSix27/waifu2x-converter-cpp &&\
|
||||||
cd waifu2x-converter-cpp &&\
|
cd waifu2x-converter-cpp &&\
|
||||||
mkdir build &&\
|
mkdir build &&\
|
||||||
cd build &&\
|
cd build &&\
|
||||||
|
Loading…
Reference in New Issue
Block a user