Support more image sizes (#1441)

* Support more image sizes
With diffusers, width and height must be a multiple of 8 (instead of 64), allowing more resolution values.

* Add swap button

* Change popup button icon
This commit is contained in:
JeLuF
2023-07-29 18:12:48 +02:00
committed by GitHub
parent eedf6f0aad
commit 4d3f55622a
4 changed files with 176 additions and 43 deletions

View File

@ -453,6 +453,8 @@ async function getAppConfig() {
document.querySelectorAll("#sampler_name option.diffusers-only").forEach((option) => {
option.style.display = "none"
})
width.step=64
height.step=64
} else {
document.querySelector("#lora_model_container").style.display = ""
document.querySelector("#tiling_container").style.display = ""
@ -463,6 +465,8 @@ async function getAppConfig() {
document.querySelector("#clip_skip_config").classList.remove("displayNone")
document.querySelector("#embeddings-button").classList.remove("displayNone")
document.querySelector("#negative-embeddings-button").classList.remove("displayNone")
width.step=8
height.step=8
}
console.log("get config status response", config)