#796 Round portrait height to nearest 64

This commit is contained in:
Cohee1207 2023-07-27 23:38:08 +03:00
parent 87b9da11c6
commit 49186dbfc1

View File

@ -555,7 +555,8 @@ async function generatePicture(_, trigger, message, callback) {
const prevSDHeight = extension_settings.sd.height;
if (generationType == generationMode.FACE) {
extension_settings.sd.height = extension_settings.sd.width * 1.5;
// Round to nearest multiple of 64
extension_settings.sd.height = Math.round(extension_settings.sd.height * 1.5 / 64) * 64;
}
try {