2023-03-01 14:26:22 +00:00
|
|
|
test_host="${1:-'http://127.0.0.1:5000'}"
|
2023-02-19 04:53:57 +00:00
|
|
|
test_images=0
|
|
|
|
|
|
|
|
while true;
|
|
|
|
do
|
2023-03-01 14:26:22 +00:00
|
|
|
curl "${test_host}/api/txt2img?"\
|
2023-03-06 02:25:02 +00:00
|
|
|
'cfg=16.00&steps=30&scheduler=ddim&seed=-1&'\
|
2023-02-20 04:10:35 +00:00
|
|
|
'prompt=an+astronaut+eating+a+hamburger&negativePrompt=&'\
|
2023-03-06 03:07:06 +00:00
|
|
|
'model=stable-diffusion-onnx-v1-5&platform=cuda&'\
|
2023-02-20 04:10:35 +00:00
|
|
|
'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-03-06 02:25:02 +00:00
|
|
|
sleep 3;
|
2023-02-19 04:53:57 +00:00
|
|
|
done
|