mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-07-11 11:55:14 +02:00
Clamp controlnet images to multiples of 8
This commit is contained in:
@ -2245,6 +2245,9 @@ controlImageSelector.addEventListener("change", loadControlnetImageFromFile)
|
||||
function controlImageLoad() {
|
||||
let w = controlImagePreview.naturalWidth
|
||||
let h = controlImagePreview.naturalHeight
|
||||
w = w - (w % 8)
|
||||
h = h - (h % 8)
|
||||
|
||||
addImageSizeOption(w)
|
||||
addImageSizeOption(h)
|
||||
|
||||
|
Reference in New Issue
Block a user