add vae to en

This commit is contained in:
Vladimir Mandic
2023-09-29 09:00:41 -04:00
parent f11946f3ba
commit a2b00f34ec
9 changed files with 64 additions and 12 deletions
+6
View File
@@ -339,6 +339,12 @@ function selectCheckpoint(name) {
gradioApp().getElementById('change_checkpoint').click();
}
let desiredVAEName = null;
function selectVAE(name) {
desiredVAEName = name;
gradioApp().getElementById('change_vae').click();
}
function currentImg2imgSourceResolution(_a, _b, scaleBy) {
const img = gradioApp().querySelector('#mode_img2img > div[style="display: block;"] img');
return img ? [img.naturalWidth, img.naturalHeight, scaleBy] : [0, 0, scaleBy];