From 59d372c0a6551d5ae9332680929278ba8b841ff1 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 16 May 2021 12:17:55 +0200 Subject: [PATCH] Add script for downloading all creativities form thisanimedoesnotexist --- .../scripts/pieces/thisanimedoesnotexist.sh | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 arch-config/scripts/pieces/thisanimedoesnotexist.sh diff --git a/arch-config/scripts/pieces/thisanimedoesnotexist.sh b/arch-config/scripts/pieces/thisanimedoesnotexist.sh new file mode 100755 index 00000000..1966623f --- /dev/null +++ b/arch-config/scripts/pieces/thisanimedoesnotexist.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +set -euo pipefail + +if [ $# -eq 0 ]; then + echo "Please supply the seed" +elif [ $# -ge 2 ]; then + echo "Please only give one argument" +fi + +seed="$1" +downloadpath="$HOME/Downloads/thisanimedoesnotexist/${seed}" +creativity=(0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0) + +mkdir -p "$downloadpath" + +cd "$downloadpath" + +for creativity in "${creativity[@]}"; do + wget -O - https://thisanimedoesnotexist.ai/results/psi-${creativity}/seed${seed}.png > seed${seed}-${creativity}.png +done + +exit