2022-09-11 18:18:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -Eeuo pipefail
|
|
|
|
|
2022-09-17 11:44:00 +00:00
|
|
|
mkdir -p /cache/torch /cache/transformers /cache/weights /cache/models /cache/custom-models
|
|
|
|
|
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-09-16 18:07:50 +00:00
|
|
|
aria2c --input-file /docker/links.txt --dir /cache/models --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"
|