-echo "ComfyUI server started with PID $COMFYUI_PID"
-echo "========================================="
-echo "Step 4 Waiting for ComfyUI server to be ready"
-echo "========================================="
-timeout=300
-count=0
-while [ $count -lt $timeout ]; do if grep -q "http://127.0.0.1:8188" logs/comfyui.log; then echo "ComfyUI server is ready!"; break; fi; sleep 1; count=$((count+1)); done
-if [ $count -eq $timeout ]; then echo "Timeout waiting for ComfyUI server to start"; exit 1; fi
# 等待服务器启动,最多等待5分钟
-|
timeout=300
count=0
while [ $count -lt $timeout ]; do
if grep -q "http://127.0.0.1:8188" logs/comfyui.log; then
echo "ComfyUI server is ready!"
break
fi
sleep 1
count=$((count+1))
done
if [ $count -eq $timeout ]; then
echo "Timeout waiting for ComfyUI server to start"
exit 1
fi
-echo "========================================="
-echo "Step 5 Running benchmark tests with precise seed replacement"