Spaces:
Build error
Build error
Download setup.sh from xp3857/Image_Restoration_Colorization: direct link, hf CLI and curl.
- Browser
- Download file 804 Bytes
-
https://huggingface.co/spaces/xp3857/Image_Restoration_Colorization/resolve/main/setup.sh
- Command line
-
hf download hf://spaces/xp3857/Image_Restoration_Colorization/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/xp3857/Image_Restoration_Colorization/resolve/main/setup.sh
804 Bytes
| cd Face_Enhancement/models/networks/ | |
| git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch | |
| cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm . | |
| cd ../../../ | |
| cd Global/detection_models | |
| git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch | |
| cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm . | |
| cd ../../ | |
| 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 ../ | |
| cd Face_Enhancement/ | |
| wget https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life/releases/download/v1.0/face_checkpoints.zip | |
| unzip face_checkpoints.zip | |
| cd ../ | |
| cd Global/ | |
| wget https://github.com/manhkhanhad/ImageRestorationInfer/releases/download/Pretrained/checkpoints.zip | |
| unzip checkpoints.zip | |
| cd ../ |