Merge branch 'beta' into zoom

This commit is contained in:
cmdr2 2023-03-16 11:47:14 +05:30 committed by GitHub
commit 394cb72e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -146,6 +146,9 @@ def make_step_callback(
def update_temp_img(x_samples, task_temp_images: list):
partial_images = []
images = latent_samples_to_images(context, x_samples)
if task_data.block_nsfw:
images = apply_filters(context, "nsfw_checker", images)
for i, img in enumerate(images):
buf = img_to_buffer(img, output_format="JPEG")

View File

@ -501,8 +501,8 @@ async function init() {
SD.init({
events: {
statusChange: setServerStatus
, idle: onIdle
statusChange: setServerStatus,
idle: onIdle
}
})

View File

@ -302,7 +302,7 @@ function showImages(reqBody, res, outputContainer, livePreview) {
}
if(allHidden === true) {
const req = htmlTaskMap.get(parentTaskContainer)
if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.classList.add("displayNone")}
if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.parentNode.removeChild(parentTaskContainer)}
}
})
})
@ -327,9 +327,6 @@ function showImages(reqBody, res, outputContainer, livePreview) {
imageExpandBtn.addEventListener('click', function() {
imageModal(imageElem.src)
})
imageElem.addEventListener('click', function() {
imageModal(this.src)
})
const req = Object.assign({}, reqBody, {
seed: result?.seed || reqBody.seed