tiny but very vital fix for inpainting
This commit is contained in:
parent
23ad080055
commit
d31eb541cf
2 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ var stableDiffusionData = {
|
||||||
mask: "",
|
mask: "",
|
||||||
init_images: [],
|
init_images: [],
|
||||||
inpaint_full_res: false,
|
inpaint_full_res: false,
|
||||||
inpainting_fill: 2,
|
inpainting_fill: 1,
|
||||||
enable_hr: false,
|
enable_hr: false,
|
||||||
restore_faces: false,
|
restore_faces: false,
|
||||||
//firstphase_width: 0,
|
//firstphase_width: 0,
|
||||||
|
|
|
@ -991,7 +991,7 @@ const dream_img2img_callback = (bb, resolution, state) => {
|
||||||
request.height = resolution.h;
|
request.height = resolution.h;
|
||||||
|
|
||||||
request.denoising_strength = state.denoisingStrength;
|
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)
|
// Load prompt (maybe we should add some events so we don't have to do this)
|
||||||
request.prompt = document.getElementById("prompt").value;
|
request.prompt = document.getElementById("prompt").value;
|
||||||
|
|
Loading…
Reference in a new issue