Download vmaf_utils/Dockerfile from silvanus0930/vidaio-subnet: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/silvanus0930/vidaio-subnet/resolve/main/vmaf_utils/Dockerfile
- Command line
-
hf download hf://silvanus0930/vidaio-subnet/vmaf_utils/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/silvanus0930/vidaio-subnet/resolve/main/vmaf_utils/Dockerfile
1.29 kB
| FROM ubuntu:22.04 | |
| ARG NV_CODEC_TAG="876af32a202d0de83bd1d36fe74ee0f7fcf86b0d" | |
| # get and install building tools | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| build-essential \ | |
| ninja-build \ | |
| nasm \ | |
| doxygen \ | |
| python3 \ | |
| python3-pip \ | |
| python3-venv \ | |
| xxd \ | |
| clang \ | |
| wget \ | |
| unzip \ | |
| nvidia-cuda-dev \ | |
| nvidia-cuda-toolkit | |
| # retrieve source code | |
| COPY . /vmaf | |
| # setup environment | |
| ENV PATH=/vmaf:/vmaf/libvmaf/build/tools:$PATH | |
| ENV PKG_CONFIG_PATH="/usr/local/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH" | |
| RUN wget https://github.com/FFmpeg/nv-codec-headers/archive/${NV_CODEC_TAG}.zip && unzip ${NV_CODEC_TAG}.zip && cd nv-codec-headers-${NV_CODEC_TAG} && make && make install | |
| # make vmaf | |
| # when disabling NVCC, libvmaf will be built without cubin's which will compile kernels at start of the container | |
| RUN cd /vmaf && make clean && make ENABLE_NVCC=true && make install && \ | |
| set -eux; \ | |
| for d in /usr/local/lib /usr/local/lib/x86_64-linux-gnu /usr/local/lib64; do \ | |
| if [ -d "$d" ]; then echo "$d"; fi; \ | |
| done > /etc/ld.so.conf.d/00-vmaf-local.conf && \ | |
| ldconfig | |
| # install python tools | |
| RUN pip3 install --no-cache-dir -r /vmaf/python/requirements.txt | |
| WORKDIR /vmaf | |
| ENV PYTHONPATH=python | |
| ENTRYPOINT [ "vmaf" ] |