Skip to content

feat: use image and command-line dimensions by default on sdapi#1262

Draft
wbruna wants to merge 2 commits intoleejet:masterfrom
wbruna:sdapi_default_dimensions
Draft

feat: use image and command-line dimensions by default on sdapi#1262
wbruna wants to merge 2 commits intoleejet:masterfrom
wbruna:sdapi_default_dimensions

Conversation

@wbruna
Copy link
Contributor

@wbruna wbruna commented Feb 8, 2026

When image dimensions are not provided, get them first from any input images, replicating the sd-cli approach. For plain txt2img, get the default dimensions from the server command-line.

This is on top of #1260 because it conflicts with it, and I tested both together; I can rebase it onto master if needed. And if the logic is sound, I'll extend it to the openai endpoints.

Should (eventually) fix #1248 .

- actually apply requested cfg_scale
- make steps optional
- get steps and cfg_scale default values from command line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] server mode, set resolution but not work

1 participant