2022-09-11 18:18:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -Eeuo pipefail
|
|
|
|
|
2022-10-04 17:56:38 +00:00
|
|
|
mkdir -p /data/.cache /data/StableDiffusion /data/Codeformer /data/GFPGAN /data/ESRGAN /data/BSRGAN /data/RealESRGAN /data/SwinIR /data/LDSR /data/ScuNET /data/embeddings
|
2022-09-17 11:44:00 +00:00
|
|
|
|
2022-09-20 17:35:10 +00:00
|
|
|
cat <<EOF
|
|
|
|
By using this software, you agree to the following licenses:
|
|
|
|
https://github.com/CompVis/stable-diffusion/blob/main/LICENSE
|
|
|
|
https://github.com/TencentARC/GFPGAN/blob/master/LICENSE
|
|
|
|
https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE
|
|
|
|
EOF
|
|
|
|
|
2022-09-16 18:07:50 +00:00
|
|
|
echo "Downloading, this might take a while..."
|
2022-09-11 18:18:50 +00:00
|
|
|
|
2022-10-01 10:57:53 +00:00
|
|
|
aria2c --input-file /docker/links.txt --dir /data --continue
|
2022-09-11 18:18:50 +00:00
|
|
|
|
|
|
|
echo "Checking SHAs..."
|
|
|
|
|
2022-09-16 18:07:50 +00:00
|
|
|
parallel --will-cite -a /docker/checksums.sha256 "echo -n {} | sha256sum -c"
|
2022-10-01 10:57:53 +00:00
|
|
|
|
|
|
|
# fix potential permissions
|
2022-10-02 07:25:31 +00:00
|
|
|
# TODO: need something better than this:
|
|
|
|
# chmod -R 777 /data /output
|