#!/usr/bin/env bash # 생성된 표정 변주(var--v1.png)를 BiRefNet 누끼 → 알파 정제 → 표준 캔버스 게시. set -uo pipefail cd "$(dirname "$0")" PY="$HOME/.venvs/object-separation/Scripts/python.exe" SEP="$HOME/.agents/skills/object-separation/scripts/separate_object.py" for name in sad tired anxious warm startled eyes-closed speaking; do src="var-${name}-v1.png" [ -f "$src" ] || { echo "[skip] $name ($src 없음)"; continue; } cut="cut-${name}.png" echo "== [cut] $name ==" if "$PY" "$SEP" "$src" "$cut" --model birefnet-general >/dev/null 2>&1; then "$PY" publish.py "$cut" "$name" else echo "[FAIL] cutout $name" fi done echo "== public-assets ==" ls -la /d/workspace/vignette/apps/web/public/avatar/seoyeon/