Closed HAPPY-FAMILY closed 5 months ago
pytorch built with that Dockerfile is very old and needs to be upgraded to 2.0 or later.
I have updated dockerfiles https://github.com/nagadomi/nunif/commit/18153e9a758fc92a6fe3136475a56a6d74fb61af Not tested on a machine which has no AVX.
`[root@localhost nunif]# docker build -t nunif -f Dockerfiles/Dockerfile.cpu_noavx Dockerfiles [+] Building 50.7s (20/21) docker:default => [internal] load build definition from Dockerfile.cpu_noavx 0.0s => => transferring dockerfile: 2.54kB 0.0s => [internal] load metadata for docker.io/nvidia/cuda:11.8.0-runtime-ubuntu22.04 0.6s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [ 1/18] FROM docker.io/nvidia/cuda:11.8.0-runtime-ubuntu22.04@sha256:eaaccb3528ceca110601131434ab467e41d694a41e8c9bf280fb27ac18fcb29b 0.0s => CACHED [ 2/18] RUN apt-get update -y 0.0s => CACHED [ 3/18] RUN apt-get install -y git-core python3-pip libmagickwand-dev libraqm-dev wget libomp-dev libopenblas-dev gfortran libblas-dev m4 cmake python3-dev python3-yaml 0.0s => CACHED [ 4/18] RUN mkdir -p /root/src 0.0s => CACHED [ 5/18] WORKDIR /root/src 0.0s => CACHED [ 6/18] RUN pip3 uninstall torch torchvision torchtext torchaudio 0.0s => CACHED [ 7/18] RUN echo $'touch .gitignore \nCMAKE_BUILD_TYPE=RelWithDebInfo ATEN_CPU_CAPABILITY=default USE_CUDA=0 USE_AVX=0 USE_AVX2=0 USE_DISTRIBUTED=0 USE_NNPACK=0 USE_QNNPACK=0 USE_MK 0.0s => CACHED [ 8/18] RUN cat /root/src/build.sh 0.0s => CACHED [ 9/18] RUN echo " Build torch" 0.0s => CACHED [10/18] RUN wget -q https://github.com/pytorch/pytorch/releases/download/v1.13.1/pytorch-v1.13.1.tar.gz -O pytorch-v1.13.1.tar.gz && tar -xzf pytorch-v1.13.1.tar.gz && cd py 0.0s => CACHED [11/18] RUN echo " Build torchvision" 0.0s => CACHED [12/18] RUN wget -q https://github.com/pytorch/vision/archive/refs/tags/v0.14.1.tar.gz -O vision-0.14.1.tar.gz && tar -xzf vision-0.14.1.tar.gz && cd vision-0.14.1 && . 0.0s => CACHED [13/18] RUN echo " Build torchtext" 0.0s => CACHED [14/18] RUN git clone https://github.com/pytorch/text -b v0.14.1 torchtext-0.14.1 && cd torchtext-0.14.1 && . ../build.sh && pip3 install dist/.whl 0.0s => CACHED [15/18] WORKDIR /root 0.0s => CACHED [16/18] RUN rm -fr /root/src 0.0s => ERROR [17/18] RUN git clone https://github.com/nagadomi/nunif.git /root/nunif && cd /root/nunif && pip3 install -r requirements.txt && python3 -m waifu2x.download_models && 50.0s