microsoft / Bringing-Old-Photos-Back-to-Life

Bringing Old Photo Back to Life (CVPR 2020 oral)
https://arxiv.org/abs/2004.09484
MIT License
15.14k stars 2k forks source link

manifest for nvidia/cuda:11.1-base-ubuntu20.04 not found: manifest unknown: manifest unknown #264

Closed hktalent closed 1 year ago

hktalent commented 1 year ago
docker login
...
Login Succeeded

cd Bringing-Old-Photos-Back-to-Life
docker build -t fixold .

Sending build context to Docker daemon  84.24MB
Step 1/15 : FROM nvidia/cuda:11.1-base-ubuntu20.04
manifest for nvidia/cuda:11.1-base-ubuntu20.04 not found: manifest unknown: manifest unknown
hktalent commented 1 year ago

see https://hub.docker.com/r/nvidia/cuda/tags?page=1&name=ubuntu20

how fixed

change FROM nvidia/cuda:12.1.0-base-ubuntu20.04 $ cat Dockerfile

FROM nvidia/cuda:12.1.0-base-ubuntu20.04

RUN apt update && DEBIAN_FRONTEND=noninteractive apt install git bzip2 wget unzip python3-pip python3-dev cmake libgl1-mesa-dev python-is-python3 libgtk2.0-dev -yq
ADD . /app
WORKDIR /app
RUN cd Face_Enhancement/models/networks/ &&\
  git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch &&\
  cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm . &&\
  cd ../../../

RUN cd Global/detection_models &&\
  git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch &&\
  cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm . &&\
  cd ../../

RUN cd Face_Detection/ &&\
  wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 &&\
  bzip2 -d shape_predictor_68_face_landmarks.dat.bz2 &&\
  cd ../ 

RUN cd Face_Enhancement/ &&\
  wget https://facevc.blob.core.windows.net/zhanbo/old_photo/pretrain/Face_Enhancement/checkpoints.zip &&\
  unzip checkpoints.zip &&\
  cd ../ &&\
  cd Global/ &&\
  wget https://facevc.blob.core.windows.net/zhanbo/old_photo/pretrain/Global/checkpoints.zip &&\
  unzip checkpoints.zip &&\
  rm -f checkpoints.zip &&\
  cd ../

RUN pip3 install numpy

RUN pip3 install dlib

RUN pip3 install -r requirements.txt

RUN git clone https://github.com/NVlabs/SPADE.git

RUN cd SPADE/ && pip3 install -r requirements.txt

RUN cd ..

CMD ["python3", "run.py"]
hktalent commented 1 year ago

docker build -t fixold . build error:

--2023-03-22 00:31:33--  https://facevc.blob.core.windows.net/zhanbo/old_photo/pretrain/Face_Enhancement/checkpoints.zip
Resolving facevc.blob.core.windows.net (facevc.blob.core.windows.net)... 52.239.237.4
Connecting to facevc.blob.core.windows.net (facevc.blob.core.windows.net)|52.239.237.4|:443... connected.
HTTP request sent, awaiting response... 404 The specified resource does not exist.
2023-03-22 00:31:33 ERROR 404: The specified resource does not exist..

The command '/bin/sh -c cd Face_Enhancement/ &&  wget https://facevc.blob.core.windows.net/zhanbo/old_photo/pretrain/Face_Enhancement/checkpoints.zip &&  unzip checkpoints.zip &&  cd ../ &&  cd Global/ &&  wget https://facevc.blob.core.windows.net/zhanbo/old_photo/pretrain/Global/checkpoints.zip &&  unzip checkpoints.zip &&  rm -f checkpoints.zip &&  cd ../' returned a non-zero code: 8