From 5b2a6234d4017663b4d6b94e5cc0d6d5281c4505 Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Wed, 23 Nov 2022 08:12:14 -0300 Subject: [PATCH] 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 Former-commit-id: c137f13e5a71f0b62cc7094bd53f8a4e5f89fcb6 --- 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 541f613..48bb81d 100644 --- a/js/index.js +++ b/js/index.js @@ -457,7 +457,7 @@ function checkProgress(bb) { document.getElementById("estRemaining").innerText = estimate; }); - }, 500); + }, 1500); } function mouseMove(evt) { diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 4ed77c6..9408830 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -173,6 +173,6 @@ const dream_img2img_callback = (evn, state) => { request.inpainting_mask_invert = true; // Dream - dream(bb.x, bb.y, request, {method: "img2img"}); + dream(bb.x, bb.y, request, {method: "img2img", stopMarching, bb}); } };