extended timing on progress check and fixed dream

Progress check now has a 1.5s timing window (we can update it to wait
for the last update before sending a new progress request in the future)

Fixed dream() call in img2img tool

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>

Former-commit-id: c137f13e5a71f0b62cc7094bd53f8a4e5f89fcb6
This commit is contained in:
Victor Seiji Hariki 2022-11-23 08:12:14 -03:00
parent c54a51f8ee
commit 5b2a6234d4
2 changed files with 2 additions and 2 deletions

View file

@ -457,7 +457,7 @@ function checkProgress(bb) {
document.getElementById("estRemaining").innerText = estimate; document.getElementById("estRemaining").innerText = estimate;
}); });
}, 500); }, 1500);
} }
function mouseMove(evt) { function mouseMove(evt) {

View file

@ -173,6 +173,6 @@ const dream_img2img_callback = (evn, state) => {
request.inpainting_mask_invert = true; request.inpainting_mask_invert = true;
// Dream // Dream
dream(bb.x, bb.y, request, {method: "img2img"}); dream(bb.x, bb.y, request, {method: "img2img", stopMarching, bb});
} }
}; };