2023-02-19 04:53:57 +00:00
|
|
|
test_host="${1:-127.0.0.1}"
|
|
|
|
test_images=0
|
|
|
|
|
|
|
|
while true;
|
|
|
|
do
|
|
|
|
curl "http://${test_host}:5000/api/txt2img?"\
|
2023-02-21 03:46:54 +00:00
|
|
|
'cfg=16.00&steps=3&scheduler=deis-multi&seed=-1&'\
|
2023-02-20 04:10:35 +00:00
|
|
|
'prompt=an+astronaut+eating+a+hamburger&negativePrompt=&'\
|
|
|
|
'model=stable-diffusion-onnx-v1-5&platform=any&'\
|
|
|
|
'upscaling=upscaling-real-esrgan-x2-plus&correction=correction-codeformer&'\
|
|
|
|
'lpw=false&width=512&height=512&upscaleOrder=correction-both' \
|
2023-02-19 04:53:57 +00:00
|
|
|
-X 'POST' \
|
|
|
|
--compressed \
|
|
|
|
--insecure || break;
|
|
|
|
((test_images++));
|
|
|
|
echo "waiting after $test_images";
|
2023-02-26 19:09:24 +00:00
|
|
|
sleep 30;
|
2023-02-19 04:53:57 +00:00
|
|
|
done
|