taloria/art/prep/pictures-1920/rendern.sh

29 lines
872 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
# Fünf Vollbilder in 1920×1080 über FLUX.2 [pro] (ein Bild je Aufruf).
# Der Titel bekommt zwei Fassungen; die übrigen vier je eine.
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 prompt="$1" name="$2"
echo "=== $name ===" | tee -a "$LOG"
"$PY" "$REPO/art/tools/falgen.py" \
--endpoint fal-ai/flux-2-pro \
--prompt-file "$HIER/prompt_$prompt.txt" \
--size 1920x1080 --kategorie Pictures --name "$name" 2>&1 | tee -a "$LOG"
}
lauf titel titel_westreich_1920x1080_v1
lauf titel titel_westreich_1920x1080_v2
lauf taverne_a taverne_A_1920x1080
lauf taverne_b taverne_B_1920x1080
lauf waffenhaendler szene_waffenhaendler_1920x1080
lauf waldrand waldrand_1920x1080
echo "=== fertig ===" | tee -a "$LOG"