This commit is contained in:
mike
2026-06-12 01:53:06 +02:00
parent e49caf7f6a
commit 2d0322465d
8 changed files with 380 additions and 0 deletions

16
tour-comfy/start_api.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Launch the FastAPI edit service (talks to the local ComfyUI on :8188).
set -e
BASE=/media/tour/APPS/comfyui
source "$BASE/venv/bin/activate"
cd "$BASE/api"
export COMFY_URL="http://127.0.0.1:8188"
export HOST="0.0.0.0"
export PORT="8500"
# Output pixel budget. MI50 is compute-bound on this 20B model:
# ~0.59MP -> ~110s ~0.79MP -> ~140s ~1.0MP -> ~180s (4 steps)
# 0.79MP is a sane speed/quality default; raise for bigger output.
export MAX_AREA="${MAX_AREA:-786432}"
exec python edit_api.py