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
The images generated through the web UI have no problems,
but when I use the same parameters to call the API, a black bar appears.
My image size is 1800x1200, and the mask is the same size,
but there ends up being a curved edge at the bottom of the image. I'm not sure why this is happening. Additionally, when I set the mask for image generation, the width and height specified in the payload become ineffective. The generated image always ends up being 1800x1200, even if I set those two parameters to 512x512. I don't know what the issue is. When the size exceeds 512x512, the white border becomes very noticeable, but the image quality decreases significantly.
If I set it to a larger size, such as the original size of 1800x1200, the image quality improves, but that curved edge becomes even more pronounced.
Steps to reproduce the problem
Using the code above to make the call results in this issue.
What should have happened?
Under normal circumstances, the generated image should be almost identical to the one produced by the web UI, without that white border!
Checklist
What happened?
I encountered this issue when using Python to call the API. I am using /sdapi/v1/img2img for image generation. Below is my calling code.
The images generated through the web UI have no problems,
but when I use the same parameters to call the API, a black bar appears.
My image size is 1800x1200, and the mask is the same size,
but there ends up being a curved edge at the bottom of the image. I'm not sure why this is happening. Additionally, when I set the mask for image generation, the width and height specified in the payload become ineffective. The generated image always ends up being 1800x1200, even if I set those two parameters to 512x512. I don't know what the issue is. When the size exceeds 512x512, the white border becomes very noticeable, but the image quality decreases significantly.
If I set it to a larger size, such as the original size of 1800x1200, the image quality improves, but that curved edge becomes even more pronounced.
Steps to reproduce the problem
Using the code above to make the call results in this issue.
What should have happened?
Under normal circumstances, the generated image should be almost identical to the one produced by the web UI, without that white border!
What browsers do you use to access the UI ?
Microsoft Edge
Sysinfo
sysinfo-2024-12-04-01-10.json
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: