taloria/art/prep/helden-serie/rendern.sh

29 lines
809 B
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# Acht Heldensprites (vier Klassen × normal/kurz), 768², 4 Varianten je Motiv.
set -uo pipefail
HIER="$(cd "$(dirname "$0")" && pwd)"
REPO="$(cd "$HIER/../../.." && pwd)"
PY="$HOME/.venvs/art/bin/python"
LOG="$HIER/rendern.log"
: > "$LOG"
lauf() {
local name="$1" seed="$2"
echo "=== $name (s$seed) ===" | tee -a "$LOG"
"$PY" "$REPO/art/tools/falgen.py" \
--endpoint fal-ai/flux-2/klein/9b \
--prompt-file "$HIER/prompt_$name.txt" \
--size 768x768 --seed "$seed" --num-images 4 \
--kategorie Creatures --name "held_${name}_s${seed}" 2>&1 | tee -a "$LOG"
}
lauf kaempfer 10101
lauf kleriker 10102
lauf magier 10103
lauf dieb 10104
lauf kaempfer_kurz 10105
lauf kleriker_kurz 10106
lauf magier_kurz 10107
lauf dieb_kurz 10108
echo "=== fertig ===" | tee -a "$LOG"