aa
This commit is contained in:
16
tour-comfy/start_api.sh
Normal file
16
tour-comfy/start_api.sh
Normal 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
|
||||
Reference in New Issue
Block a user