From d31eb541cf63802c6737f44393f1843e5c5db595 Mon Sep 17 00:00:00 2001 From: tim h Date: Tue, 3 Jan 2023 08:16:09 -0600 Subject: [PATCH] tiny but very vital fix for inpainting --- js/index.js | 2 +- js/ui/tool/dream.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index 5ac6a77..dabd70e 100644 --- a/js/index.js +++ b/js/index.js @@ -103,7 +103,7 @@ var stableDiffusionData = { mask: "", init_images: [], inpaint_full_res: false, - inpainting_fill: 2, + inpainting_fill: 1, enable_hr: false, restore_faces: false, //firstphase_width: 0, diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 732ea31..b01cfb5 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -991,7 +991,7 @@ const dream_img2img_callback = (bb, resolution, state) => { request.height = resolution.h; request.denoising_strength = state.denoisingStrength; - request.inpainting_fill = state.inpainting_fill; //let's see how this works //1; // For img2img use original + request.inpainting_fill = state.inpainting_fill ?? 1; //let's see how this works //1; // For img2img use original // Load prompt (maybe we should add some events so we don't have to do this) request.prompt = document.getElementById("prompt").value;