tiny but very vital fix for inpainting

This commit is contained in:
tim h 2023-01-03 08:16:09 -06:00
parent 23ad080055
commit d31eb541cf
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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;