You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to debug why I am getting cropped/ugly images from the REST api whereas with the same prompt and seed I get beautiful images in dreamstudio.
Here is an example:
curl --request POST \
--url https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v0-9/text-to-image \
--header 'Accept: image/png' \
--header 'Authorization: API_KEY' \
--header 'content-type: application/json' \
--data '{
"height": 512,
"width": 512,
"seed": 2147483647,
"steps": 50,
"cfg_scale": 20,
"style_preset": "photographic",
"text_prompts": [
{
"text": "A photo of Tina'\''s cozy and inviting bedroom, with warm lighting and a comfortable bed adorned with soft pillows and blankets.",
"weight": 1
},
{
"text": "blurry, bad anatomy, disfigured, deformed, bad proportions, blurred, cropped",
"weight": -1
}
]
}'
Leads to the following image:
Here are the same inputs, down to cfg_scale, steps and seed:
And they lead to this output, consistently:
I tried inspecting the gprc payload send by dreamstudio but as I imagined I could only see the "text" parts:
����x��
�Main�ј�
�stable-diffusion-xl-1024-v0-9��"€�
������Ђ?�}A photo of Tina's cozy and inviting bedroom, with warm lighting and a comfortable bed adorned with soft pillows and blankets."W
������@ї�Lblurry, bad anatomy, disfigured, deformed, bad proportions, blurred, cropped"�
������Ђѕ��*%�Ђ��Ђ���яяяя� �(22���:���-�� A��
��Ђ?ъ������Asset�����!
�Asset��
asset-serviceB��������
At least the model, the prompt and the negative prompts looks the same. Am I missing something here?
The text was updated successfully, but these errors were encountered:
Hi!
I am trying to debug why I am getting cropped/ugly images from the REST api whereas with the same prompt and seed I get beautiful images in dreamstudio.
Here is an example:
Leads to the following image:
Here are the same inputs, down to
cfg_scale
,steps
andseed
:And they lead to this output, consistently:
I tried inspecting the gprc payload send by dreamstudio but as I imagined I could only see the "text" parts:
At least the model, the prompt and the negative prompts looks the same. Am I missing something here?
The text was updated successfully, but these errors were encountered: